Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3336

Request with only prefix mapping throws exception, but it should return http 404 (not found) response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.10, 2.1.4
    • JSR-314
    • None

    Description

      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.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: