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

Not existing viewId will not be handled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8
    • 2.1.13
    • General
    • None
    • Jetty/Tomcat, JUEL, CODI, ExtVal

    Description

      If i call a page, which does not exist, following exceptions occurs: Cannot reset buffer after response has been committed.

      After digging deeper into this problem, i found out that getViewHandlerSupport()#calculateViewId returns null and the JspViewDeclarationLanguageStrategy will be used ->

      Cannot reset buffer after response has been committed.

      occurs.

      I added a null check for the logicalViewId in RestoreViewExecutor#execute to call HttpServletResponse#sendError.

      It does not work as expected because it just renders the errorPage and no redirect will be done.

      Why there is not such null check?

      Is it possible to add this check and redirect to the web.xml defined 404 or common error page? Or should it use the ErrorHandler?

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              tandraschko Thomas Andraschko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: