You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (Resolved) (JIRA)" <de...@myfaces.apache.org> on 2011/09/28 21:36:45 UTC

[jira] [Resolved] (MYFACES-3336) Request with only prefix mapping throws exception, but it should return http 404 (not found) response

     [ https://issues.apache.org/jira/browse/MYFACES-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-3336.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.4
                   2.0.10
    
> Request with only prefix mapping throws exception, but it should return http 404 (not found) response
> -----------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3336
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3336
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.10, 2.1.4
>
>
> Paths like this
> http://localhost:8080/mycustomapp/faces
> should an exception on flash scope and http response 500. Since the prefix is reserved to jsf servlet, it should return 404 not found, because it is not possible to derive a view. Note in portlet case it could be valid, because the viewId can be encoded as a query param.
> In this case, a InvalidViewIdException should be thrown and later on restore view phase, we should check if the view was committed, to prevent restore view / rendering code continue and throw other unwanted exceptions.

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