Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2388

Impossible to show error page after component id not found

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Steps to reproduce:
      Use Quickstart template for 5.4-beta-22 (Using the error page recipe)
      Enable Production mode (dev has no problem)
      Open an url with a unkown component id (/index.html)

      Expected:
      Error404 page with information /index.html was not found

      Actual:
      Blank Page with 404 Status

      Possible Reason:
      ProductionModeUnknownComponentFilter#handleComponentEvent doenst find html ->
      request.setAttribute(InternalConstants.REFERENCED_COMPONENT_NOT_FOUND, true) ->
      ComponentEventDispatcher#dispatch returns false ->
      Request for Error404 by Container ->
      PageRenderDispatcher#dispatch checks for REFERENCED_COMPONENT_NOT_FOUND and its still there->
      returns false -> error404 is not displayed

      Tomcat version: 7.0.55

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hlship Howard M. Lewis Ship
                Reporter:
                quurks quurks
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: