Tomcat version: 8.0.43
java: 1.8.0_05

Hello,

On some web browsers, clients are able to enter uri's with unescaped
illegal characters (eg: "|" or pipe).
This causes an IllegalArgumentException to be thrown and a 400 response
code.
This behavior is reported here:
https://bz.apache.org/bugzilla/show_bug.cgi?id=60425

Is there anyway to encode the URI (maybe in a filter or something) so that
this exception and response code is not returned, and then a normal 404
would be returned?

I have tried placing the URIEncode attribute in the connector element of
the server.xml file but I think this only effects how the URI is decoded.

Thank you.

Reply via email to