[seam-issues] [JBoss JIRA] (SEAMFACES-241) SecurityPhaseListener#observePreNavigateEvent not firing PostLoginEvent when view action is #{identity.login()}

Fernando Marquardt (JIRA) jira-events at lists.jboss.org
Thu Feb 23 13:15:38 EST 2012


     [ https://issues.jboss.org/browse/SEAMFACES-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Marquardt updated SEAMFACES-241:
-----------------------------------------

    Environment: Seam Faces 3.1.0.Final, Seam Security 3.1.0.Final, Jboss 7.0.2  (was: Seam Faces 3.1.0.Final
Seam Security 3.1.0.Final

JavaEE6

Jboss 7.0.2)

    
> SecurityPhaseListener#observePreNavigateEvent not firing PostLoginEvent when view action is #{identity.login()}
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SEAMFACES-241
>                 URL: https://issues.jboss.org/browse/SEAMFACES-241
>             Project: Seam Faces
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 3.1.0.Final
>         Environment: Seam Faces 3.1.0.Final, Seam Security 3.1.0.Final, Jboss 7.0.2
>            Reporter: Fernando Marquardt
>
> I'm trying to use the "redirect to captured view after login succesful" feature implemented by Seam Faces.
> org.jboss.seam.faces.security.SecurityPhaseListener#observePreNavigateEvent should fire a PostLoginEvent if the authentication response was 'success' (Identity.RESPONSE_LOGIN_SUCCESS) and if the event action is equals to '#{identity.login}'.
> My problem is when my action on the commandButton is '#{identity.login()}', wich is suggested by my IDE (Eclipse), wich i think is perfectly fine. So the verification '"#{identity.login}".equals(event.getFromAction())' returns false and the PostLoginEvent is never fired.
> This is necessary for the org.jboss.seam.faces.security.LoginListener#observePostLoginEvent to be invoked to do the redirection.
> I can use a workaround, by rewriting my action to '#{identity.login}' and it will work fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list