You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "L. Kluitmann (JIRA)" <ji...@apache.org> on 2011/03/09 10:02:59 UTC

[jira] Commented: (WICKET-3493) Login doesn't work if placing the SignInPanel on the HomePage.

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

L. Kluitmann commented on WICKET-3493:
--------------------------------------

Now we have a complex behavior. Follow these steps:

1. Login on the HomePage -> you are redirected to HomePage. OK! But cookie (remember me was checked) not set. Not OK!
2. Click admin link -> redirected to login page. Not OK!
3. Click back button of your browser or use the back gesture -> Back to HomePage, of course.
4. Login again -> redirected to AdminPage and cookie is set. OK but very strange behavior

After SignOut you are able to reproduce the steps.



>  Login doesn't work if placing the SignInPanel on the HomePage.
> ---------------------------------------------------------------
>
>                 Key: WICKET-3493
>                 URL: https://issues.apache.org/jira/browse/WICKET-3493
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-auth-roles, wicket-examples
>    Affects Versions: 1.5-RC2
>         Environment: Ubuntu 10.04 and Wicket 1.5 latest trunk
>            Reporter: L. Kluitmann
>            Assignee: Igor Vaynberg
>            Priority: Minor
>              Labels: wicket
>             Fix For: 1.5-RC3
>
>
> I did some minor changes to wicket example authentication3. I put the SignInPanel on the HomePage. The changes look like this:
> HomePage.java
>   public HomePage() {
>         super();
>         
>         add(new SignInPanel("signin", true));
>   }
> HomePage.html
>        <br><br>
>         <div wicket:id="signin"></div>
> Now you can see the SignInPanel on the HomePage. If you login you are redirected to the home page again. Everything seems to be fine. But if you click the Admin Page link you are redirected to the login page. I think you should end-up on the Admin Page itself because the login was correct.
> That means also, you cannot use the SignInPanel on your application's home page for user login. 
> Regards
> Ludger

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