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

Sling JSP Include tag does not take resource super types into account for synthetic resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting JSP-Taglib 2.0.2
    • Scripting
    • None

    Description

      Consider a repository structure like this

      /apps/type/base/GET.jsp
      /apps/type/extended/sling:resourceSuperType = type/base

      Now including a resource "/content/missing" like

      <sling:include path="/content/missing" resourceType="type/extended" />

      is expected to call the GET.jsp script for a GET request.

      This does not work, since the SyntheticResource created by the include tag implementation always returns null for the resource super type.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: