tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53353] Malformed contentType attribute results in two charset values
Date Sun, 03 Jun 2012 19:29:24 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53353

--- Comment #2 from Mark Thomas <markt@apache.org> ---
At one level, this is just a case of "garbage in, garbage out" with current
7.0.x producing different garbage that 6.0.x for the same input. Granted, the
7.0.x garbage is likely to cause more problems for clients.

Digging a little deeper, it appears that Jasper is making the same error as the
root cause of bug 52811, namely using contentType.indexOf("charset=") < 0. That
is probably more forgivable in Jasper than it was in Tomcat.

I'll see if I can configure the parser to handle parameters of the form "name"
rather than "name=value". That should make Tomcat a little more robust against
this sort of input. Since the input is invalid, the specs don't say how this
should be handled so we have a little latitude here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message