Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16130

[GSS](7.2.z) Forward attributes not present in error pages

    XMLWordPrintable

Details

    • +
    • Hide

      Just deploy the attached error-pages.war and type the following URLs:

      • http://<server>:<port>/error-pages/not-found.jsp
      • http://<server>:<port>/error-pages/ErrorServlet

      In any EAP 7 only the error attributes are displayed while in EAP 6 both (error and forward) are shown.

      Show
      Just deploy the attached error-pages.war and type the following URLs: http://<server>:<port>/error-pages/not-found.jsp http://<server>:<port>/error-pages/ErrorServlet In any EAP 7 only the error attributes are displayed while in EAP 6 both (error and forward) are shown.

    Description

      Error pages are not receiving the forward attributes (javax.servlet.forward.XXXX) but only the error attributes (javax.servlet.error.XXXX).

      The problem seems to be that the request displatcher impl is using a specific method error that does not add those attributes (check class RequestDispatcherImpl). In previous EAP 6 error pages also used the forward method and then the attributes were there.

      Note that the servlet spec 3.1 chapter 10.9.1 says that those forward properties should be present in error pages: "The request path and attributes are set as if a RequestDispatcher.forward to the error resource had been performed."

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: