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

Streamline and document resource (super) type merging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Resource Merger 1.4.0
    • Resource Merger 1.4.2
    • Extensions
    • None

    Description

      In SLING-4340 the merging of resource types has been changed so that it gives the resourceType property precedence over Resource.getResourceType() (https://github.com/apache/sling-org-apache-sling-resourcemerger/blob/f821f844ba675e3850189debf8e45239026c5709/src/main/java/org/apache/sling/resourcemerger/impl/MergedResource.java#L74-L92).

      This change is questionable and kind of unexpected from the user's side and also leads to undesired side effects like outlined in SLING-11504.

      So in the best case the merging of resource types doesn't rely on properties (which are implementation details of the underlying resolvers) but clearly derives from either the lowest or highest resource without breaking the use cases outlined in SLING-4340.

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m