hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1006) BrowserCompatSpec: don't trim " around cookie value
Date Fri, 17 Feb 2017 09:31:41 GMT

    [ 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

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message