[ https://issues.apache.org/jira/browse/WICKET-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marat Radchenko updated WICKET-2635: ------------------------------------ Attachment: 2635.tar.gz > Sucessfull login on SignInPanel causes HomePage to become stateful > ------------------------------------------------------------------ > > Key: WICKET-2635 > URL: https://issues.apache.org/jira/browse/WICKET-2635 > Project: Wicket > Issue Type: Bug > Components: wicket-auth-roles > Affects Versions: 1.4.5 > Reporter: Marat Radchenko > Attachments: 2635.tar.gz > > > Quickstart attached. > Steps to reproduce > 1. Unpack attached quickstart > 2. mvn jetty:run > 3. Open http://localhost:8080/login > 4. Enter any credentials > Expected: StatelessHomePage opens > Actual: exception happends, StatelessHomePage isn't stateless > Problem analysis: > 1. SignInForm manually creates page. > 2. AbstractListenerInterfaceRequestTarget.onProcessEvents calls > requestCycle.setRedirect(true) > 3. RequestCycle.urlFor(final Component component, final > RequestListenerInterface listener, ValueMap params) calls > page.setPageStateless(Boolean.FALSE) > 4. StatelessChecker isn't happy. > Fix is simple - SignInForm.onSignInSucceeded should be: > if (!continueToOriginalDestination()) > { > setResponsePage(getApplication().getHomePage()); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.