You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2014/01/22 08:01:22 UTC

[jira] [Reopened] (JCRVLT-25) Implement AccessControllHandling MERGE and MERGE_PRESERVE

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

Tobias Bocanegra reopened JCRVLT-25:
------------------------------------


the new importer does not allow to create ACLs with missing principals.

> Implement AccessControllHandling MERGE and MERGE_PRESERVE
> ---------------------------------------------------------
>
>                 Key: JCRVLT-25
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-25
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>            Reporter: Tobias Bocanegra
>            Assignee: Tobias Bocanegra
>             Fix For: 3.1
>
>
> The special access control handling MERGE and MERGE_PRESERVE are not implemented yet. suggest to implement as follows:
> {code}
>    /**
>      * Merge access control provided with the package with the one in the
>      * content by replacing the access control entries of corresponding
>      * principals (i.e. package first). It never alters access control entries
>      * of principals not present in the package.
>      * <p/>
>      * Example:<br/>
>      *
>      * Content ACL:
>      * <pre>
>      *     everyone, deny, jcr:all
>      *     bob, allow, jcr:read
>      *     bob, allow, jcr:write
>      * </pre>
>      *
>      * Package ACL:
>      * <pre>
>      *     bob, deny, jcr:all
>      *     alice, allow, jcr:read
>      * </pre>
>      *
>      * Result ACL:
>      * <pre>
>      *     everyone, deny, jcr:all
>      *     bob, deny, jcr:all
>      *     alice, allow, jcr:read
>      * </pre>
>      */
>     MERGE,
>     /**
>      * Merge access control in the content with the one provided with the
>      * package by adding the access control entries of principals not present in the
>      * content (i.e. content first). It never alters access control entries already
>      * existing in the content.
>      *
>      * <p/>
>      * Example:<br/>
>      *
>      * Content ACL:
>      * <pre>
>      *     everyone, deny, jcr:all
>      *     bob, allow, jcr:read
>      *     bob, allow, jcr:write
>      * </pre>
>      *
>      * Package ACL:
>      * <pre>
>      *     bob, deny, jcr:all
>      *     alice, allow, jcr:read
>      * </pre>
>      *
>      * Result ACL:
>      * <pre>
>      *     everyone, deny, jcr:all
>      *     bob, allow, jcr:read
>      *     bob, allow, jcr:write
>      *     alice, allow, jcr:read
>      * </pre>
>      */
>     MERGE_PRESERVE,
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)