Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
- links to