You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Sangjin Lee (JIRA)" <ji...@apache.org> on 2008/02/14 01:45:07 UTC
[jira] Created: (GERONIMO-3846) cookies are not carried over when
requests are redirected
cookies are not carried over when requests are redirected
---------------------------------------------------------
Key: GERONIMO-3846
URL: https://issues.apache.org/jira/browse/GERONIMO-3846
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: AsyncHttpClient
Affects Versions: 1.x
Reporter: Sangjin Lee
Priority: Minor
When you send a request and receive a redirect response (301 or 302), the response may contain cookies (via Set-Cookie header). For subsequent redirect requests, these cookies need to be sent. Currently AHC does not send any cookies unless explicitly set by the caller.
Two cases where this should be done are redirects and auth challenges.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (GERONIMO-3846) cookies are not carried over when
requests are redirected
Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick McGuire resolved GERONIMO-3846.
------------------------------------
Resolution: Fixed
Committed revision 628012. Mina 1.1.5 version
Committed revision 628013. Mina 2.0 version.
> cookies are not carried over when requests are redirected
> ---------------------------------------------------------
>
> Key: GERONIMO-3846
> URL: https://issues.apache.org/jira/browse/GERONIMO-3846
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: AsyncHttpClient
> Affects Versions: 1.x
> Reporter: Sangjin Lee
> Assignee: Rick McGuire
> Priority: Minor
> Attachments: GERONIMO-3846.patch
>
>
> When you send a request and receive a redirect response (301 or 302), the response may contain cookies (via Set-Cookie header). For subsequent redirect requests, these cookies need to be sent. Currently AHC does not send any cookies unless explicitly set by the caller.
> Two cases where this should be done are redirects and auth challenges.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-3846) cookies are not carried over when
requests are redirected
Posted by "Sangjin Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sangjin Lee updated GERONIMO-3846:
----------------------------------
Attachment: GERONIMO-3846.patch
A suggested fix.
- Cookies are really stored per name. There can be only one cookie per name. Therefore, it makes sense to add cookies using their names.
- Added transferring cookies from the response to a subsequent request in case of redirects/auth challenges.
> cookies are not carried over when requests are redirected
> ---------------------------------------------------------
>
> Key: GERONIMO-3846
> URL: https://issues.apache.org/jira/browse/GERONIMO-3846
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: AsyncHttpClient
> Affects Versions: 1.x
> Reporter: Sangjin Lee
> Priority: Minor
> Attachments: GERONIMO-3846.patch
>
>
> When you send a request and receive a redirect response (301 or 302), the response may contain cookies (via Set-Cookie header). For subsequent redirect requests, these cookies need to be sent. Currently AHC does not send any cookies unless explicitly set by the caller.
> Two cases where this should be done are redirects and auth challenges.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (GERONIMO-3846) cookies are not carried over when
requests are redirected
Posted by "Sangjin Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sangjin Lee closed GERONIMO-3846.
---------------------------------
> cookies are not carried over when requests are redirected
> ---------------------------------------------------------
>
> Key: GERONIMO-3846
> URL: https://issues.apache.org/jira/browse/GERONIMO-3846
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: AsyncHttpClient
> Affects Versions: 1.x
> Reporter: Sangjin Lee
> Assignee: Rick McGuire
> Priority: Minor
> Attachments: GERONIMO-3846.patch
>
>
> When you send a request and receive a redirect response (301 or 302), the response may contain cookies (via Set-Cookie header). For subsequent redirect requests, these cookies need to be sent. Currently AHC does not send any cookies unless explicitly set by the caller.
> Two cases where this should be done are redirects and auth challenges.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (GERONIMO-3846) cookies are not carried over when
requests are redirected
Posted by "Sangjin Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sangjin Lee reassigned GERONIMO-3846:
-------------------------------------
Assignee: Rick McGuire
Just to put it on your radar... Thanks!
> cookies are not carried over when requests are redirected
> ---------------------------------------------------------
>
> Key: GERONIMO-3846
> URL: https://issues.apache.org/jira/browse/GERONIMO-3846
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: AsyncHttpClient
> Affects Versions: 1.x
> Reporter: Sangjin Lee
> Assignee: Rick McGuire
> Priority: Minor
> Attachments: GERONIMO-3846.patch
>
>
> When you send a request and receive a redirect response (301 or 302), the response may contain cookies (via Set-Cookie header). For subsequent redirect requests, these cookies need to be sent. Currently AHC does not send any cookies unless explicitly set by the caller.
> Two cases where this should be done are redirects and auth challenges.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.