myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kočí (JIRA) <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3189) NavigationHandler: navigation to nonexistent view after ViewExpired throws NPE
Date Sat, 25 Jun 2011 16:24:47 GMT

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

Martin Kočí commented on MYFACES-3189:
--------------------------------------

NavigationHandlerImpl.getNavigationCase already provides a info "No navigation case match
for viewId ..." but it is not sufficient in this situation because it creates a facesMessage
- but there is no view for rendering.

> NavigationHandler: navigation to nonexistent view after ViewExpired throws NPE
> ------------------------------------------------------------------------------
>
>                 Key: MYFACES-3189
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3189
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.8-SNAPSHOT, 2.1.2-SNAPSHOT
>            Reporter: Martin Kočí
>
> see http://weblogs.java.net/blog/edburns/archive/2009/09/03/dealing-gracefully-viewexpiredexception-jsf2
> If user provides nonexistent viewId, NPE occurs: MYFACES-3188
> navigation in this situation leads to facesContext.viewRoot = null. I don't know what
spec says about it but mojarra stays on current view in this case (navigate?) - on that view,
where VVE is. 
> We should also provide a warning about this situation.

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

       

Mime
View raw message