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 "Marco Piovesana (JIRA)" <ji...@apache.org> on 2017/03/20 16:57:41 UTC

[jira] [Commented] (OAK-5919) Discrepancy between addAccessControlEntry and clear on versioned node

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

Marco Piovesana commented on OAK-5919:
--------------------------------------

Does anybody have any hint about this?

> 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)