Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78DDEE448 for ; Fri, 22 Feb 2013 09:24:19 +0000 (UTC) Received: (qmail 49237 invoked by uid 500); 22 Feb 2013 09:24:19 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 48122 invoked by uid 500); 22 Feb 2013 09:24:17 -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 47701 invoked by uid 99); 22 Feb 2013 09:24:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 09:24:13 +0000 Date: Fri, 22 Feb 2013 09:24:13 +0000 (UTC) From: "Francois-Xavier Bonnet (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HTTPCLIENT-1327) BrowserCompatSpec double quotes cookie value when cookie has "expires" attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Francois-Xavier Bonnet created HTTPCLIENT-1327: -------------------------------------------------- Summary: BrowserCompatSpec double quotes cookie value when cookie has "expires" attribute Key: HTTPCLIENT-1327 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1327 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpClient Affects Versions: 4.3 Alpha1 Reporter: Francois-Xavier Bonnet Priority: Minor When receiving this header: Set-Cookie: test="test"; Version=1; Max-Age=1000; Expires=Mon, 11-Feb-2013 10:39:19 GMT; Path=/ If you parse and format again the cookie you get: Cookie: test="\"test\"" I tested with the last versions of Firefox, Chrome and Internet Explorer and you always get: Cookie: test="test" You can easily get such a cookie with Tomcat: Cookie tomcatCookie = new Cookie("test", "test"); tomcatCookie.setPath("/"); tomcatCookie.setMaxAge(1000); response.addCookie(tomcatCookie); The problem is that BrowserCompatSpec considers it as a Netscape style cookie because of expires attribute so the quotes are considered as being part of the value. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org