Return-Path: Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 15238 invoked by uid 98); 13 Dec 2002 10:10:47 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 15219 invoked from network); 13 Dec 2002 10:10:45 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 13 Dec 2002 10:10:45 -0000 Received: (qmail 57976 invoked by uid 500); 13 Dec 2002 10:09:23 -0000 Received: (qmail 57966 invoked from network); 13 Dec 2002 10:09:23 -0000 Received: from duba03h01-0.dplanet.ch (212.35.36.32) by daedalus.apache.org with SMTP; 13 Dec 2002 10:09:23 -0000 Received: (from luser@localhost) by duba03h01-0.dplanet.ch (8.11.6/8.11.6) id gBDA9Ut15891; Fri, 13 Dec 2002 11:09:30 +0100 Date: Fri, 13 Dec 2002 11:09:30 +0100 Message-Id: <200212131009.gBDA9Ut15891@duba03h01-0.dplanet.ch> X-Authentication-Warning: duba03h01-0.dplanet.ch: luser set sender to o.kalnichevski@dplanet.ch using -f Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) From: o.kalnichevski@dplanet.ch To: commons-httpclient-dev@jakarta.apache.org Subject: Re: Problem with cookies using double quotes X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Christopher,=20 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 wit= h 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 compatibi= lity mode and see if problem persists=20 I'll investigate the problem and get back to you as soon as I can=20 Oleg=20 >Hi all, > >we're having another problem with Cactus & HttpClient (mucho thanks for >so quickly fixing the last one, BTW): > >http://cvs.apache.org/builds/gump/latest/jakarta-cactus-sample-servlet-12.= html > (Test against Tomcat 3.x) > >http://cvs.apache.org/builds/gump/latest/jakarta-cactus-sample-servlet-13.= html > (Test against Tomcat 4.x) > >The relevant source is here: > >http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-cactus/sample-servlet= /src/unit/share/org/apache/cactus/unit/TestServletTestCase2.java?rev=3DHEAD= &content-type=3Dtext/plain > (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 :-) > >--=20 >Christopher Lenz >/=3D/ cmlenz at gmx.de > > > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > >