Re: Double Slash Conversion to Single Slash in URL Not Working

Mark Thomas <[email protected]> Mon, 13 Apr 2026 13:46:13 +0100
Newsgroups gmane.comp.jakarta.tomcat.user
Message-ID <[email protected]>
On 10/04/2026 20:22, Grackin, Michael A. Mr. (Fed) via users wrote:
> I have discovered our Tomcat 9.0.113 installation is not converting double slashes in the middle of URLs to a single slash and therefore is returning 404 errors.  This is a COTS product so I cannot fix the application to send single slashes.
> 
> Any suggestions as to what to look for that might be preventing this?  From what I can tell this is supposed to be the default behavior, but I assume one of the various setting changes I made to harden our installation has disabled the slash conversion.  I have tried removing all the hardening settings but still not luck.
> 
> Any thoughts/suggestions would be greatly appreciated.

The replacement of "//" sequences with "/" sequences is hard-coded.

Can you recreate the issue with a clean Tomcat install. If  you can 
provide a URI (e.g. against the examples web application) that doesn't 
work when it is expected to work we can investigate further.

Mark