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

Emond Papegaaij commented on WICKET-3471:
-----------------------------------------

Of course, we do not use the check I used for the quickstart, it only serves to 
demonstrate the problem. In our application we set up a context in 
onBeginRequest and tear it down in onEndRequest. This context is required for 
some of the security checks to be performed. For example, this context contains 
the organisation the current user belongs to and one of the security checks 
verifies that the link targets a page that is part of a module that is active 
for that organisation. This security check currently fails, because the 
organisation has not yet been set on the context.

> WicketTester checkUsability is called before the request has started
> --------------------------------------------------------------------
>
>                 Key: WICKET-3471
>                 URL: https://issues.apache.org/jira/browse/WICKET-3471
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.15
>            Reporter: Emond Papegaaij
>         Attachments: quickstart.tar.bz2
>
>
> For example, when clicking a link, the checkUsability method is called with 
> the link before RequestCycle.onBeginRequest has been called. This causes 
> tests to fail when, for example, the link has a security check that requires 
> the request cycle. I've created a quickstart that demonstrates the problem.

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

        

Reply via email to