Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 76414 invoked from network); 9 Jul 2009 01:40:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jul 2009 01:40:27 -0000 Received: (qmail 29005 invoked by uid 500); 9 Jul 2009 01:40:37 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 28916 invoked by uid 500); 9 Jul 2009 01:40:37 -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 28906 invoked by uid 99); 9 Jul 2009 01:40:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 01:40:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 01:40:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C7365234C004 for ; Wed, 8 Jul 2009 18:40:14 -0700 (PDT) Message-ID: <1102778417.1247103614801.JavaMail.jira@brutus> Date: Wed, 8 Jul 2009 18:40:14 -0700 (PDT) From: "Ben Perkins (JIRA)" To: dev@hc.apache.org Subject: [jira] Created: (HTTPCLIENT-859) BasicCookieStore treats cookies of the same name from the same host as duplicates, even if they have different paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org BasicCookieStore treats cookies of the same name from the same host as duplicates, even if they have different paths -------------------------------------------------------------------------------------------------------------------- Key: HTTPCLIENT-859 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-859 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpClient Affects Versions: 4.0 Beta 2 Reporter: Ben Perkins The DefaultHttpClient is not handling cookies correctly when a single host returns multiple cookies of the same name but with separate paths. For example, if a single instance of the client is used to access two different webapps on the same server, it may receive two different JSESSIONID cookies: Cookie: [version: 0][name: JSESSIONID][value: F832C01D23F501CE5EEB296B602700C1][domain: lglom139.example.com][path: /msa-adrenalina][expiry: null] Cookie: [version: 0][name: JSESSIONID][value: 0FC660347391B93267168F84F2B520F5][domain: lglom139.example.com][path: /maps][expiry: null] Because the CookieIdentityComparator class does not test the cookie path when determining equality, each new JSESSIONID received replaces the previous one instead of adding a new cookie to the store. This results in "disconnecting" the client from its sessions on the prior webapps. I've confirmed that adding a path test to CookieIdentityComparator resolves this problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org