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

Sling request attributes not properly reset after an resource include

    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

      The "org.apache.sling.api.include.servlet" and "org.apache.sling.api.include.resource" request attributes are defined in the Sling API to be set to be the servlet including the currently executing servlet and the resource pertaining to that including servlet.

      Currently, the attribute is just set when a resource is included through the RequestDispatcher. When the include returns from the RequestDispatcher the attribtues are not reset to the previous values, thus still reflecting "self" instead of the actual including servlet.

        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: