Ignore:
Timestamp:
2019-04-30T18:33:42+12:00 (5 years ago)
Author:
ak19
Message:

Not a bugfix, but to help with encoding issues, including to help with current, still unresolved encoding issue. 1. Introduction of string2hex functions in JavaScript and Java. 2. Overriding GSXML.elemtToString() with introduction of additional debugEncoding parameter that will turn on string2hex use when printing request and response XMLs. Now non-basic ASCII characters in the XML will be printed in hex if debugEncoding parameter passed in is true. 3. The inactive Connector elements in server8.xml.svn now also have the attribute URIEncoding set to UTF-8. Some of these inactive Connectors get turned on at times, such as for https. In which case we will need tomcact to also interpret get/post data coming in through those connectors to be sent on as utf-8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/resources/tomcat/server_tomcat8.xml.svn

    r32696 r33043  
    7070           port="@localhost.port.http@"  protocol="HTTP/1.1"
    7171               connectionTimeout="20000"
    72                redirectPort="@https.redirect.port@" />
     72               redirectPort="@https.redirect.port@"
     73               URIEncoding="UTF-8" />
    7374    -->
    7475    <!-- A "Connector" using the shared thread pool-->   
     
    9697    <!--
    9798    <Connector port="@https.redirect.port@" protocol="org.apache.coyote.http11.Http11NioProtocol"
    98                maxThreads="150" SSLEnabled="true">
     99               maxThreads="150" SSLEnabled="true" URIEncoding="UTF-8">
    99100        <SSLHostConfig>
    100101            <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
     
    111112    <!--
    112113    <Connector port="@https.redirect.port@" protocol="org.apache.coyote.http11.Http11AprProtocol"
    113                maxThreads="150" SSLEnabled="true" >
     114               maxThreads="150" SSLEnabled="true" URIEncoding="UTF-8" >
    114115        <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
    115116        <SSLHostConfig>
     
    127128            keystorePass="@keystore.pass@"
    128129            clientAuth="false" sslProtocol="TLS"
    129         keystoreType="@keystore.type@" />
     130        keystoreType="@keystore.type@"
     131        URIEncoding="UTF-8" />
    130132    @https.comment.out.end@
    131133
Note: See TracChangeset for help on using the changeset viewer.