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-1878) Automatic redirect handling incorrectly parses cookies
Date Tue, 31 Oct 2017 10:40:00 GMT

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

Oleg Kalnichevski commented on HTTPCLIENT-1878:
-----------------------------------------------

Are you sure about it? Are you sure the cookie(s) did not get rejected as invalid?

Oleg

> Automatic redirect handling incorrectly parses cookies
> ------------------------------------------------------
>
>                 Key: HTTPCLIENT-1878
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1878
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (async), HttpClient (classic)
>    Affects Versions: 4.5.3
>         Environment: Linux, Java 8 OpenJDK
>            Reporter: Bert Peters
>            Priority: Minor
>
> When a request is handled as a redirect, the HttpClient incorrectly does not handle any
`SetCookie` headers but instead just starts the redirect.
> This issue affects both the HttpClient and HttpAsyncClient.
> To reproduce:
> # Create two pages, one redirecting to the next.
> # Let the first page set a cookie
> # Dump all cookies sent to the second page
> A current workaround is to handle redirects manually, since that way cookies are parsed
normally.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message