[ https://issues.apache.org/jira/browse/OAK-5919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15936737#comment-15936737 ]
Marco Piovesana edited comment on OAK-5919 at 3/22/17 5:36 PM: --------------------------------------------------------------- Hi Angela, my bad for also asking also a question inside the issue. However, isn't the different behaviour between {{clear}} and {{addAccessControlEntry}} a bug? Marco. was (Author: iosonomarco): Hi Angela, my bad for also asking a question inside the issue. However, isn't the different behaviour between {{clear}} and {{addAccessControlEntry}} a bug? Marco. > 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)