https://bz.apache.org/bugzilla/show_bug.cgi?id=64470

--- Comment #2 from Konstantin Kolinko <knst.koli...@gmail.com> ---
(In reply to Remy Maucherat from comment #1)

> --- a/java/org/apache/tomcat/util/buf/UDecoder.java
> +++ b/java/org/apache/tomcat/util/buf/UDecoder.java
> @@ -140,7 +140,7 @@
>  
>                  j+=2;
>                  int res=x2c( b1, b2 );
> -                if (res == '/') {
> +                if (res == '/' && !ALLOW_ENCODED_SLASH) {
>                      switch (encodedSolidusHandling) {
>                      case DECODE: {
>                          buff[idx]=(byte)res;

The configuration reference says that the system property affects the default
value of encodedSolidusHandling attribute of all connectors:
http://tomcat.apache.org/tomcat-9.0-doc/config/systemprops.html

Searching for "encodedSolidusHandling",
I think that the patch should be for org.apache.catalina.connector.Connector
where the default value is set. (The bug is that it is сurrently done without
any respect for the system property).

If we patch UDecoder it means that the changed value won't be seen as a
connector property via JMX.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to