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

Sling Oak Restrictions not compatible with oak 1.8.x

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Oak Restrictions 1.0.2
    • Oak
    • None

    Description

      The Sling oak restrictions [1] are not compatible to oak 1.8.x since it imports TreeUtil [2] that is not part of the SPI (and the location has changed). To maintain compatibility to older oak versions, it would be best to get rid of the TreeUtil.getString(treeToCheck, SLING_RESOURCE_TYPE) call altogether (TreeUtils provides a simple type conversion and null check that can be directly part of ResourceTypePattern to minimise package dependencies).

      [1] https://sling.apache.org/documentation/bundles/sling-oak-restrictions.html
      [2] https://github.com/apache/sling-org-apache-sling-oak-restrictions/blob/master/src/main/java/org/apache/sling/oak/restrictions/impl/ResourceTypePattern.java#L28

      Attachments

        Issue Links

          Activity

            People

              henzlerg Georg Henzler
              henzlerg Georg Henzler
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 0.5h
                  0.5h