You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2017/02/17 09:31:41 UTC
[jira] [Commented] (HTTPCLIENT-1006) BrowserCompatSpec: don't trim
" around cookie value
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15871523#comment-15871523 ]
Julian Reschke commented on HTTPCLIENT-1006:
--------------------------------------------
FWIW, I asked on the IETF HTTP WG mailing list (see https://lists.w3.org/Archives/Public/ietf-http-wg/2017JanMar/0226.html).
dveditz@mozilla.com confirms that browsers round-trip the double quotes (see https://lists.w3.org/Archives/Public/ietf-http-wg/2017JanMar/0227.html).
w3c@adambarth.com (author of RFC 6265) confirms in https://lists.w3.org/Archives/Public/ietf-http-wg/2017JanMar/0229.html that this was the intent, and even points at test cases.
> 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.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org