You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Michael Allan (Updated) (JIRA)" <ji...@apache.org> on 2012/02/02 00:25:54 UTC

[jira] [Updated] (WICKET-4358) BufferedWebResponse fails to add/clear cookie in redirect

     [ https://issues.apache.org/jira/browse/WICKET-4358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Allan updated WICKET-4358:
----------------------------------

    Attachment: wicket-bug-4358.tar.bz2

quickstart
                
> BufferedWebResponse fails to add/clear cookie in redirect
> ---------------------------------------------------------
>
>                 Key: WICKET-4358
>                 URL: https://issues.apache.org/jira/browse/WICKET-4358
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.4
>         Environment: Firefox 9
>            Reporter: Michael Allan
>              Labels: cookie, redirect
>         Attachments: wicket-bug-4358.tar.bz2
>
>
> bufferedWebResponse.addCookie( cookie );
> That fails under certain conditions: (1) when called on the last of three 302 redirects during OpenID login; and (2) on single redirect immediately after container startup, though it later recovers.  Failure confirmed in Firebug; no cookies sent in any of the response headers.  My workaround is to bypass the buffered response.  This works:
> ((HttpServletResponse)bufferedWebResponse.getContainerResponse()).addCookie( cookie );

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira