Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Servlets Resolver 2.4.20
-
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.