Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 29260 invoked from network); 26 Oct 2008 20:09:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2008 20:09:42 -0000 Received: (qmail 67878 invoked by uid 500); 26 Oct 2008 20:09:45 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 67847 invoked by uid 500); 26 Oct 2008 20:09:45 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 67836 invoked by uid 99); 26 Oct 2008 20:09:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2008 13:09:45 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.44] (HELO ok2consulting.nine.ch) (217.150.250.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2008 20:08:33 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 8E7C119854F; Sun, 26 Oct 2008 21:09:10 +0100 (CET) Received: from [192.168.1.104] (84-75-130-83.dclient.hispeed.ch [84.75.130.83]) by ok2consulting.nine.ch (Postfix) with ESMTP id 29CE819854D for ; Sun, 26 Oct 2008 21:09:06 +0100 (CET) Subject: Re: BestMatchSpec - why does it not choose RFC2109? From: Oleg Kalnichevski To: HttpComponents Project In-Reply-To: <25aac9fc0810260749nf019ee5qd43ab135c0d75d55@mail.gmail.com> References: <25aac9fc0810251555o1209f547j78d263a385f2004@mail.gmail.com> <1225017462.11216.11.camel@ubuntu> <1225023302.14954.2.camel@ubuntu> <25aac9fc0810260622l609411abhd8a3155aac43a80e@mail.gmail.com> <1225028136.15262.2.camel@ubuntu> <25aac9fc0810260749nf019ee5qd43ab135c0d75d55@mail.gmail.com> Content-Type: text/plain Date: Sun, 26 Oct 2008 21:09:05 +0100 Message-Id: <1225051745.15262.7.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.3 On Sun, 2008-10-26 at 15:49 +0100, sebb wrote: > On 26/10/2008, Oleg Kalnichevski wrote: > > On Sun, 2008-10-26 at 14:22 +0100, sebb wrote: > > > On 26/10/2008, Oleg Kalnichevski wrote: > > > > On Sun, 2008-10-26 at 11:37 +0100, Oleg Kalnichevski wrote: > > > > > On Sat, 2008-10-25 at 23:55 +0100, sebb wrote: > > > > > > > > > > > > Sebastian, > > > > > > > > You were right. It seems the easiest and cleanest fix would be the make > > > > best-match cookie spec pick up RFC2109 spec for cookies generated from > > > > 'Set-Cookie' headers. > > > > > > > > > > Agreed, and always use RFC2965 for Set-Cookie2 headers. > > > > > > The Set-Cookie header did not have a domain, so there may also be a > > > problem with the RFC2965 handling of a missing domain (it is optional, > > > just checked). > > > > > > The extracted cookie was set up with the domain "localhost", which of > > > course does not have the ".local" part attached. Same thing happened > > > when I used the actual local name for the host. Seems to me that > > > RFC2965 should add the ".local" suffix if necessary when generating > > > the missing domain. > > > > > > > > > This sounds odd, because that is what it does. I could not reproduce the > > problem with a test case. Would you be able to put together a junit to > > reproduce the issue? > > > > I'll have a go later. > > What I used was the Tomcat Cookie Example running locally combined > with a modified ClientFormLogin example from HC SVN, but that's > overkill for a test case. > > Examples that failed are as follows: > > Set-Cookie: special="abcd=efgh"; Version=1 > Set-Cookie: special="abcd efgh"; Version=1 > > Ones that worked OK are: > > Set-Cookie: special=abcdefgh > <"abcd efgh"> Set-Cookie: special="abcd efgh" > > It's the ones that have a "Version" attribute that fail for me. > > Note: the <> above are used to enclose the "cookievalue" parameter I > used in the CookieExample form. > Sebastian, Bizarre. Could you please post a wire log / context log of that session? This may be enough for me to figure out the cause of the problem. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org