[Bug 70144] Tomcat Embedded doesn't work with encoded `\`

[email protected] Thu, 16 Jul 2026 06:56:51 +0000
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <[email protected]/bugzilla/>
https://bz.apache.org/bugzilla/show_bug.cgi?id=70144

--- Comment #5 from Boris Petrov <[email protected]> ---
Sorry, should have been more specific.

I use JRuby for my integration tests and this is Ruby code - and JRuby allows
calling `A.setXXX(YYY)` methods as property setters - `A.XXX = YYY`. There is a
method `Connector.setEncodedSolidusHandling` - which is being called by
`connector.encoded_solidus_handling =
EncodedSolidusHandling::DECODE.to_string`. For `SSLEnabled`, `relaxedPathChars`
and `useVirtualThreads` there are no specific methods so I just use
`setProperty` (again, JRuby allows this to be called as `set_property` as is
Ruby's convention for method naming).

The `\` is in the path, not a query string. And yes, Ruby allows `\` to not be
quoted in a single-quote string.

In any case, as I mentioned, this same unchanged code works fine when using
9.0.120. It breaks when I use 11.0.24. Only the `\` case - the other characters
work fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.