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

The Sling Servlet Resolver does not work correctly in some inheritance scenarios

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Resolver 2.4.20
    • Servlets Resolver 2.4.22
    • Servlets
    • None

    Description

      Given the following script structure:

      /libs/test
          test.jsp
      /apps/test
          test.html
      /apps/test2
          [sling:resourceSuperType='test']
          test2.jsp
      

      Assuming there's a content resource at /content/test with a resourceType set to test2, the current servlet resolution from org.apache.sling.servlets.resolver 2.4.20 will pick the test.html script instead of the test2.jsp script, due to the fact that the HTL Script Engine Factory has a higher priority than the JSP Script Engine Factory.

      The Script Engine Factory priority should only be taken in consideration for scripts in the same folder.

      Attachments

        Activity

          People

            radu Radu Cotescu
            radu Radu Cotescu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: