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 2011/09/20 09:36:08 UTC

[jira] [Assigned] (WICKET-4066) RestartResponseAtInterceptPageException.InterceptData is never cleared

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

Martin Grigorov reassigned WICKET-4066:
---------------------------------------

    Assignee: Martin Grigorov

> RestartResponseAtInterceptPageException.InterceptData is never cleared
> ----------------------------------------------------------------------
>
>                 Key: WICKET-4066
>                 URL: https://issues.apache.org/jira/browse/WICKET-4066
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.0
>            Reporter: Matt Brictson
>            Assignee: Martin Grigorov
>         Attachments: WICKET-4066-quickstart.tgz, WICKET-4066.patch.txt
>
>
> RestartResponseAtInterceptPageException.InterceptData is supposed to be cleared after continueToOriginalDestination() is called. This is accomplished via RestartResponseAtInterceptPageException.MAPPER, which is registered in the SystemMapper.
> However there seems to be a serious bug here. The MAPPER always returns a compatibilityScore of 0, and thus is never actually invoked. The InterceptData is thus never cleared. Furthermore, even if the MAPPER did return a Integer.MAX_VALUE score, it would still not be invoked in many scenarios, since other mappers in the SystemMapper are registered later and therefore have higher priority.
> In practice, this can lead to very odd login behavior in Wicket applications (which is where RestartResponseAtInterceptPageException is typically used). For example, if the user clicks a "login" link they may end up on a totally unexpected page, due to stale InterceptData that is hanging around in the session.
> I am attaching a quick start that demonstrates the problem, as well as a patch the fixes the compatibilityScore and moves the MAPPER to a higher priority in the SystemMapper.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira