tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: tomcat bad encoding
Date Wed, 11 Jul 2012 08:00:44 GMT
On 10/07/2012 18:03, Thushara Wijeratna wrote:
> Is it possible to have tomcat treat bad URI encodings leniently?

No. Sorry.

> 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.

In that scenario the URI would not be decoded properly and therefore
would be incomplete so there is no guarantee that it would be correctly
mapped.

> We get bad encodings due to various truncation issues so it is very helpful
> if we can get a lenient decoding.
>
> Please let me know if this is something that could be looked at. I'd
> volunteer dev / test time to get this in the code.

You'd be better of fixing the truncation issues.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message