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

The MergingServletResourceProvider does not wrap resources correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Resolver 2.7.0
    • Servlets Resolver 2.9.8
    • Servlets
    • 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

          Activity

            People

              pauls Karl Pauls
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h