hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Guillemot (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCLIENT-1006) BrowserCompatSpec: don't trim " around cookie value
Date Mon, 04 Oct 2010 08:45:33 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12917524#action_12917524
] 

Marc Guillemot commented on HTTPCLIENT-1006:
--------------------------------------------

Hi Oleg,

in HtmlUnit we try to reproduce browser's behaviour. Concerning cookies, this means that what
is important for us is for instance the value available from JavaScript as in:
alert(document.cookies)

Until now we have surrounded the cookie values ourself with quotes when they have contained
spaces but this was wrong.

If you're interested, here are the two issues that I will fix soon by hacking BrowserCompatSpec
not to discard quotes:
http://sourceforge.net/tracker/?func=detail&aid=3076336&group_id=47038&atid=448266
http://sourceforge.net/tracker/?func=detail&aid=2973040&group_id=47038&atid=448266

Marc.

> 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: HttpCookie
>    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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message