Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-843

Do not cut off potential servlet context path in SlingRequestDispatcher

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Engine 2.0.2
    • Fix Version/s: Engine 2.0.4
    • Component/s: Engine
    • Labels:
      None

      Description

      With SLING-221 (Rev. 618697) code has been added to the SlingRequestDispatcher to cut off the servlet context path if the path to include has the context path as a prefix.

      According to my reading of the Servlet Spec, the absolute path used to retrieve a RequestDispatcher is interpreted relative to the servlet context, that is the path is never prefixed with any servlet context path. Hence cutting of some piece of the path is not correct.

      Note, that the assumption of cutting off the context path is used throughout a number of integration tests. These tests will fail and have to be fixed when fixing this issue.

        Attachments

          Activity

            People

            • Assignee:
              fmeschbe Felix Meschberger
              Reporter:
              fmeschbe Felix Meschberger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: