Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Servlets Resolver 2.7.0
-
None
Description
The MergingServletResourceProvider does not wrap resources correctly, forcing script engines that need to solve dependencies via this provider to call ResourceResolver#resolve(String). Unfortunately, there is a case when the call to resolve fails:
/apps/components/a/ a.html helper.something.html helper/ [backed by JCR] partial.html /apps/components/b [sling:resourceSuperType=components/a] b.html -> tries to resolve helper.something.html
In the case above, b.html will get the helper folder when trying to resolve helper.something.html.
If the MergingServletResourceProvider would correctly wrap resources (and decorate them accordingly), the script engines could switch to using ResourceResolver#getResource(String), which would not exhibit the same behaviour.
Attachments
Issue Links
- is related to
-
SLING-11448 Provide a mode option for resource providers
- Closed
- relates to
-
SLING-11508 Make dependency resolution use ResourceResolver#getResource instead of ResourceResolver#resolve
- Closed