packages (DEVEL): tomcat/server.xml-URIEncoding-utf8.patch (NEW) - URIEncod...

pawelz pawelz at pld-linux.org
Tue Jul 20 13:56:29 CEST 2010


Author: pawelz                       Date: Tue Jul 20 11:56:29 2010 GMT
Module: packages                      Tag: DEVEL
---- Log message:
- URIEncoding="UTF-8" in <Connector> tags

---- Files affected:
packages/tomcat:
   server.xml-URIEncoding-utf8.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: packages/tomcat/server.xml-URIEncoding-utf8.patch
diff -u /dev/null packages/tomcat/server.xml-URIEncoding-utf8.patch:1.1.2.1
--- /dev/null	Tue Jul 20 13:56:29 2010
+++ packages/tomcat/server.xml-URIEncoding-utf8.patch	Tue Jul 20 13:56:24 2010
@@ -0,0 +1,41 @@
+Setup URIEncoding="UTF-8" to use unversal URI encoding.
+
+http://wiki.hudson-ci.org/display/HUDSON/Tomcat
+
+Some versions of Tomcat (such as 5.0.28) uses iso-8859-1 to decode URLs, which
+is in a clear violation of the relevant RFCs. To fix this problem, add the
+following URIEncoding attribute to the connector definition in
+$TOMCAT_HOME/conf/server.xml.
+
+--- server.xml.orig	2010-06-13 16:55:18.000000000 +0200
++++ server.xml	2010-07-20 13:51:33.000000000 +0200
+@@ -66,12 +66,14 @@
+     -->
+     <Connector port="8080" protocol="HTTP/1.1" 
+                connectionTimeout="20000" 
++               URIEncoding="UTF-8"
+                redirectPort="8443" />
+     <!-- A "Connector" using the shared thread pool-->
+     <!--
+     <Connector executor="tomcatThreadPool"
+                port="8080" protocol="HTTP/1.1" 
+                connectionTimeout="20000" 
++               URIEncoding="UTF-8"
+                redirectPort="8443" />
+     -->           
+     <!-- Define a SSL HTTP/1.1 Connector on port 8443
+@@ -80,12 +82,12 @@
+          described in the APR documentation -->
+     <!--
+     <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
+-               maxThreads="150" scheme="https" secure="true"
++               maxThreads="150" scheme="https" secure="true" URIEncoding="UTF-8"
+                clientAuth="false" sslProtocol="TLS" />
+     -->
+ 
+     <!-- Define an AJP 1.3 Connector on port 8009 -->
+-    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
++    <Connector port="8009" protocol="AJP/1.3" URIEncoding="UTF-8" redirectPort="8443" />
+ 
+ 
+     <!-- An Engine represents the entry point (within Catalina) that processes
================================================================


More information about the pld-cvs-commit mailing list