Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 84E1F200BF8 for ; Thu, 29 Dec 2016 19:16:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 838EE160B23; Thu, 29 Dec 2016 18:16:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CC1A0160B2D for ; Thu, 29 Dec 2016 19:15:59 +0100 (CET) Received: (qmail 26034 invoked by uid 500); 29 Dec 2016 18:15:59 -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 25688 invoked by uid 99); 29 Dec 2016 18:15:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2016 18:15:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B04AE2C022B for ; Thu, 29 Dec 2016 18:15:58 +0000 (UTC) Date: Thu, 29 Dec 2016 18:15:58 +0000 (UTC) From: "Detlev Beutner (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1006) BrowserCompatSpec: don't trim " around cookie value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 29 Dec 2016 18:16:00 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15785802#comment-15785802 ] Detlev Beutner commented on HTTPCLIENT-1006: -------------------------------------------- Oleg, please, let's stop this "no it does not" game without any reasoning. Let's assume you are right and I'm wrong: How should I learn from "no it does not"?! Doesn't help anybody. Anyhow, I gave the reason several times now and referred to it here again. Formal it is in 4.2.1, less formal it is in "The cookie-pair contains the cookie-name and _cookie-value the user agent received in the Set-Cookie header_." (4.2.2) I really don't understand the whole hassle. It's as plain and simple as the sentence from above (4.2.2) can be. Please keep in mind that primarily, this is not a theoretical discussion (but the theory underscores the reality, at least). It is about an implementation which _does break things up_. That's why I have opened my comments with a concrete example (of a really big site used thousands of times per day). > BrowserCompatSpec: don't trim " around cookie value > --------------------------------------------------- > > Key: HTTPCLIENT-1006 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1006 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (classic) > Affects Versions: 4.0.2 > Reporter: Marc Guillemot > > If the server sends a cookie header like: > Set-Cookie: first="hello world" > then HttpClient parses it as cookie with value >hello world<, wrongly removing the leading and trailing quotes. The incorrect quote removal occurs in BasicHeaderValueParser. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org