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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 7.2.1.GA
    • 7.1.5.GA
    • Undertow
    • None
    • +
    • 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.

      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."

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

              Created:
              Updated:
              Resolved: