CR: 7183292: HttpURLConnection.getHeaderFields() throws IllegalArgumentException: Illegal cookie name

Michael McMahon michael.x.mcmahon at oracle.com
Tue Jul 17 02:17:27 PDT 2012


Hi,

Could I get the following change reviewed please?

http://cr.openjdk.java.net/~michaelm/7183292/webrev.1/

Since 7u4, we are parsing all incoming cookies via the HttpCookie class.
This class has had a restriction on cookie names that is causing this 
problem
and which is not required by any of the cookie specifications, as far as 
I can see,
(rfc 2965, and 6265 which obsoletes 2965).

The restriction was that cookie names could not be the same (case 
insensitively)
as any of the attribute names (eg. Domain). So, the change is to remove 
the restriction.

Thanks,
Michael



More information about the net-dev mailing list