jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (OAK-5919) Discrepancy between addAccessControlEntry and clear on versioned node
Date Wed, 22 Mar 2017 16:52:42 GMT

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

angela closed OAK-5919.

> 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

View raw message