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 "Kunal Shubham (Jira)" <ji...@apache.org> on 2020/01/14 10:58:00 UTC

[jira] [Commented] (OAK-8855) Permission evaluation of nodes broken after :nestedCug removed from parent node

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

Kunal Shubham commented on OAK-8855:
------------------------------------

Please review and merge: [https://github.com/kunal3112/jackrabbit-oak/commit/abe9d8e289e829efd5d00d5a36a46de52bd8574a]

 

> Permission evaluation of nodes broken after :nestedCug removed from parent node
> -------------------------------------------------------------------------------
>
>                 Key: OAK-8855
>                 URL: https://issues.apache.org/jira/browse/OAK-8855
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: authorization-cug
>            Reporter: Kunal Shubham
>            Priority: Major
>
> Steps to Reproduce:
>  # Create a node 'a' which has two children nodes 'b1' and 'b2'. The content tree looks as shown: /content/a/b1, /content/a/b2. Create two users user1 and user2.
>  # Apply CUG policy on /content/a.
>  ** Authorize user1 and user2 to read /content/a.
>  ** Authorize user1 to read /content/a/b1.
>  ** Authorize user2 to read /content/a/b2.
>  # Remove :nestedCugs property from /content/a/rep:cugPolicy.
>  # Create a content session, login with user2. Try to read /content/a/b1.
> *Observed behavior* : user2 is able to read /content/a/b1.
> *Expected behavior* : user2 should not be able to read /content/a/b1 as it is unauthorized to do so.
> Please note that :nestedCugs is removed by a mechanism which completely overwrites content tree below "/content/a".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)