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

            Bug ID: 70144
           Summary: Tomcat Embedded doesn't work with encoded `\`
           Product: Tomcat 11
           Version: 11.0.23
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: -------

The report is for version 11.0.24 but it's not in the versions list.

I've updated my app from Tomcat 9 (latest) to Tomcat 11 (latest). An
integration test started failing - it opens a page with `%5C` (encoded `\`) in
the URL. That leads to a 400 error page shown from Tomcat.

Note this happens only in the embedded Tomcat. When I run it with the "normal"
Tomcat it works fine. Also, in Tomcat 9 there is no such problem.

This is my configuration, not that it should matter:

tomcat.connector.add_upgrade_protocol(http_2_protocol) # this will create the
default connector
tomcat.connector.encoded_solidus_handling =
EncodedSolidusHandling::DECODE.to_string
tomcat.connector.set_property('SSLEnabled', true.to_s)
tomcat.connector.set_property('relaxedPathChars', '^{}[]<>\|"')
tomcat.connector.set_property('useVirtualThreads', true.to_s)

I haven't specified:

tomcat.connector.encoded_reverse_solidus_handling =
EncodedSolidusHandling::DECODE.to_string

But according to the documentation this should be the default value.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to