hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1705) CookieSpecs#formatCookies ordering change between HC3 and HC4
Date Fri, 18 Dec 2015 10:13:46 GMT

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

Oleg Kalnichevski commented on HTTPCLIENT-1705:

I think I already tried to explain it in another ticket. Cookies like "test1=moo1;path=/"
are invalid from the standpoint of RFC 2109 and RFC 2965 as their lack mandatory version attribute.
The default policy treats such cookies as Netscape draft compatible.  And the Netscape draft
does not define any particular order for cookies in the cookie header.

_Please_ do not use any policy other than RFC6265 ones for any new development. All other
policies have been rendered obsolete by RFC6265.


> CookieSpecs#formatCookies ordering change between HC3 and HC4
> -------------------------------------------------------------
>                 Key: HTTPCLIENT-1705
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1705
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.5.1
>            Reporter: Philippe Mouawad
>         Attachments: HTTPCLIENT-1705.patch, TestCookieOrdering.java
> Following:
> http://mail-archives.apache.org/mod_mbox/hc-httpclient-users/201512.mbox/%3CCAH9fUpYn6BDFUMA6qq-q4ioFsSQvd%2BFrLJCiSJXaAxnw1ZsBtg%40mail.gmail.com%3E
> When migrating from HTTPCLIENT3 to HC4.5 (issue is also in HC4.2.3), we have a change
in behaviour of org.apache.http.client.config.CookieSpec#formatCookies compared to org.apache.commons.httpclient.cookie.CookieSpec#formatCookies.

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