You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Georg Henzler (JIRA)" <ji...@apache.org> on 2018/10/16 16:23:00 UTC

[jira] [Resolved] (SLING-8026) Sling Oak Restrictions not compatible with oak 1.8.x

     [ https://issues.apache.org/jira/browse/SLING-8026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Georg Henzler resolved SLING-8026.
----------------------------------
    Resolution: Fixed

> Sling Oak Restrictions not compatible with oak 1.8.x
> ----------------------------------------------------
>
>                 Key: SLING-8026
>                 URL: https://issues.apache.org/jira/browse/SLING-8026
>             Project: Sling
>          Issue Type: Task
>          Components: Oak
>            Reporter: Georg Henzler
>            Assignee: Georg Henzler
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)