You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Antonio Sanso (JIRA)" <ji...@apache.org> on 2013/07/01 17:37:19 UTC

[jira] [Commented] (OAK-886) Issue in AccessControlManager#hasPrivileges

    [ https://issues.apache.org/jira/browse/OAK-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696886#comment-13696886 ] 

Antonio Sanso commented on OAK-886:
-----------------------------------

the easy fix would be to remove

{code}
        if (!tree.exists()) {
            throw new PathNotFoundException("No tree at " + oakPath);
        }
{code} 

in AccessControlManagerImpl#getTree . It is important to analyze the side effect though since this method is called from different sources .
                
> Issue in AccessControlManager#hasPrivileges
> -------------------------------------------
>
>                 Key: OAK-886
>                 URL: https://issues.apache.org/jira/browse/OAK-886
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Antonio Sanso
>         Attachments: OAK-886-test.txt
>
>
> AccessControlManager#hasPrivileges throws an unexpected exception while should return true.
> See unit test in attachment to follow

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira