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

Marco Piovesana updated OAK-5919:
---------------------------------
    Description: 
I was trying to change the permissions on a *versioned* node and i found two 
things that I don't quite understand:
1) If i try to do an {{AccessControlUtils.addAccessControlEntry(...)}} i got an 
error if the node in not checked-out (and this seems consistent with what 
written on [JCR-1639|https://issues.apache.org/jira/browse/JCR-1639]). However 
I can do an {{AccessControlUtils.clear(...)}} without any error. Why? Aren't 
they both changing the ACL?

2) When I do {{AccessControlUtils.addAccessControlEntry(...)}} the error that i 
receive is: _OakVersion0001: Cannot add property jcr:mixinTypes on checked in 
node_. Why a change on the ACL should change the _jcr:mixinTypes_? My node was 
already versionable.

One last question: if I want to change the permissions without having to 
check-out the node what I have to do? (I can do that by setting the 
_jcr:mixinTypes_ to _IGNORE_ but i don't think is the right way... or not?)

  was:
I was trying to change the permissions on a *versioned* node and i found two 
things that don't quite understand:
1) If i try to do an {{AccessControlUtils.addAccessControlEntry(...)}} i got an 
error if the node in not checked-out (and this seems consistent with what 
written on [JCR-1639|https://issues.apache.org/jira/browse/JCR-1639]). However 
I can do an {{AccessControlUtils.clear(...)}} without any error. Why? Aren't 
they both changing the ACL?

2) When I do {{AccessControlUtils.addAccessControlEntry(...)}} the error that i 
receive is: _OakVersion0001: Cannot add property jcr:mixinTypes on checked in 
node_. Why a change on the ACL should change the _jcr:mixinTypes_? My node was 
already versionable.

One last question: if I want to change the permissions without having to 
check-out the node what I have to do? (I can do that by setting the 
_jcr:mixinTypes_ to _IGNORE_ but i don't think is the right way... or not?)


> Discrepancy between addAccessControlEntry and clear on versioned node
> ---------------------------------------------------------------------
>
>                 Key: OAK-5919
>                 URL: https://issues.apache.org/jira/browse/OAK-5919
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Marco Piovesana
>
> I was trying to change the permissions on a *versioned* node and i found two 
> things that I don't quite understand:
> 1) If i try to do an {{AccessControlUtils.addAccessControlEntry(...)}} i got 
> an error if the node in not checked-out (and this seems consistent with what 
> written on [JCR-1639|https://issues.apache.org/jira/browse/JCR-1639]). 
> However I can do an {{AccessControlUtils.clear(...)}} without any error. Why? 
> Aren't they both changing the ACL?
> 2) When I do {{AccessControlUtils.addAccessControlEntry(...)}} the error that 
> i receive is: _OakVersion0001: Cannot add property jcr:mixinTypes on checked 
> in node_. Why a change on the ACL should change the _jcr:mixinTypes_? My node 
> was already versionable.
> One last question: if I want to change the permissions without having to 
> check-out the node what I have to do? (I can do that by setting the 
> _jcr:mixinTypes_ to _IGNORE_ but i don't think is the right way... or not?)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to