tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <>
Subject Re: tomcat bad encoding
Date Tue, 10 Jul 2012 22:16:24 GMT
On 2012-07-10 19:03, Thushara Wijeratna wrote:
> 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 would not be corrupt and can be returned to caller.
> We get bad encodings due to various truncation issues so it is very helpful
> if we can get a lenient decoding.
 > ...

Well, I like "fail early". Wouldn't it be better to fix the truncation 
issues instead?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message