tomcat bad encoding

2012-07-10 Thread Thushara Wijeratna
Is it possible to have tomcat treat bad URI encodings leniently? It currently modifies a buffer in place and if a % sign is followed by anything other than 2 hexadecimal characters, it gives up decoding and throws an exception. But if this method was changed to a lenient decoding, then the buffer

can tomcat do uri decoding leniently?

2012-07-03 Thread Thushara Wijeratna
Is it possible to have tomcat decode web request parameters leniently? This is how perl, python libs do it by default. For incorrect encodings, tomcat currently rejects the parameter and the way tomcat decodes, it does get corrupted in the buffer built inside