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 54541200BEF for ; Wed, 4 Jan 2017 13:16:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 53376160B3A; Wed, 4 Jan 2017 12:16:05 +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 9C7F5160B39 for ; Wed, 4 Jan 2017 13:16:04 +0100 (CET) Received: (qmail 72061 invoked by uid 500); 4 Jan 2017 12:15:58 -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 72017 invoked by uid 99); 4 Jan 2017 12:15:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2017 12:15:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A81252C1F56 for ; Wed, 4 Jan 2017 12:15:58 +0000 (UTC) Date: Wed, 4 Jan 2017 12:15:58 +0000 (UTC) From: "Oleg Kalnichevski (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: Wed, 04 Jan 2017 12:16:05 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15798093#comment-15798093 ] Oleg Kalnichevski commented on HTTPCLIENT-1006: ----------------------------------------------- Julian, Roy T. Fielding may come forth in person and solemnly swear on health of his mother-in-law that this is what the spec meant to say. This will not change the fact that the spec says something else. The _real_ problem is that this requirement is confusing not because it has not been articulated well enough but because it makes little sense to start with. Why would anyone in their sane mind allow enclosing quotes but disallow whitespace, comma and backslash characters (precisely those things sane people would use quotes with)? This is truly beyond me. Large areas of the spec seem more concerned with producing rainbow farting unicorns and making everyone friends than defining _simple_, _concise_ and logically _coherent_ rules. Yes, given all that I would prefer to wait for a superseding RFC or at least errata that clarifies the use of character escaping rules defined by the HTTP spec (RFC 7230, section 3.2.6). Oleg > 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