You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/06/28 11:41:44 UTC
[jira] [Resolved] (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 ]
Martin Grigorov resolved WICKET-4358.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.8
6.0.0-RC1
Fix for the Bertrand's quickstart is applied.
Michael Allan's code is too hard to follow and debug.
@Michael: please verify that the fix solves your problem.
> 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
> Assignee: Martin Grigorov
> Labels: cookie, redirect
> Fix For: 6.0.0-RC1, 1.5.8
>
> Attachments: WICKET-4358.patch, wicket-4358.zip, 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