You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Jira)" <ji...@apache.org> on 2023/12/07 19:05:00 UTC

[jira] [Resolved] (SLING-12185) AuthorizableResourceProvider getResource matches wrong prefix

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

Eric Norman resolved SLING-12185.
---------------------------------
    Resolution: Fixed

Merged PR at:  [{{bfa57e7}}|https://github.com/apache/sling-org-apache-sling-jcr-jackrabbit-usermanager/commit/bfa57e790ccd2c47440223e6482b5da46090f148]

> AuthorizableResourceProvider getResource matches wrong prefix
> -------------------------------------------------------------
>
>                 Key: SLING-12185
>                 URL: https://issues.apache.org/jira/browse/SLING-12185
>             Project: Sling
>          Issue Type: Bug
>            Reporter: Eric Norman
>            Assignee: Eric Norman
>            Priority: Major
>             Fix For: JCR Jackrabbit User Manager 2.2.30
>
>
> resourceResolver.getResource("/userManager/user/group1") returns a resource object  when it should return null because the path of the group resource is actually "/userManager/group/group1"
>  
> Expected:
> The AuthorizableResourceProvider needs to check the type of the found Authorizable to ensure that the object type matches the expected resource path prefix before using it to return an AuthorizableResource.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)