hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o.kalnichev...@dplanet.ch
Subject Re: Problem with cookies using double quotes
Date Fri, 13 Dec 2002 10:09:30 GMT
I am somehow ended up being Cookie Revolutionary Guards here ;-) I am also largely responsible
for all recent changes (and bugs as well) introduced to the cookie management. Default cookie
policy has been made more strict with regard to RFC 2901 compliance. Feel free to throw some
bad tomatoes at me for that. Meanwhile you may want to try setting cookie policy to compatibility
mode and see if problem persists 

I'll investigate the problem and get back to you as soon as I can 


>Hi all,
>we're having another problem with Cactus & HttpClient (mucho thanks for
>so quickly fixing the last one, BTW):
>     (Test against Tomcat 3.x)
>     (Test against Tomcat 4.x)
>The relevant source is here:
>     (Method testCookieEncoding)
>To summarize, Cactus is using HttpClient to include a cookie with the
>request, the cookie being named "testpass" with a value "usr&pwd". It is
>expecting to get a corresponding cookie value on the server side, but
>something is screwed up: the value returned by the servlet container
>actually contains the double quotes, but Cactus is expecting (correctly,
>IMHO), just the value.
>Now, I'm not sure who's wrong here: Tomcat (both 3.x and 4.x) or
>HttpClient. Or maybe, do we need to explicity choose a different
>CookieSpec implementation that is compliant with the Servlet API?
>If someone who has more knowledge about cookies could shed some light on
>this, that'd be great :-)
>Christopher Lenz
>/=/ cmlenz at gmx.de
>To unsubscribe, e-mail:   <mailto:commons-httpclient-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:commons-httpclient-dev-help@jakarta.apache.org>

View raw message