You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2023/02/13 08:50:00 UTC

[jira] [Closed] (SLING-11713) Change ACL json input structure to be less ambiguous for restrictions

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

Robert Munteanu closed SLING-11713.
-----------------------------------

> Change ACL json input structure to be less ambiguous for restrictions
> ---------------------------------------------------------------------
>
>                 Key: SLING-11713
>                 URL: https://issues.apache.org/jira/browse/SLING-11713
>             Project: Sling
>          Issue Type: New Feature
>            Reporter: Eric Norman
>            Assignee: Eric Norman
>            Priority: Major
>             Fix For: JCR ContentLoader 2.6.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> The restriction details in the security:acl contentloader json input can be ambiguous in some situations.
> This is the ContentLoader equivalent for what was done for SLING-11243 and SLING-11233
> Expected:
> The JSON structure of the security:acl entries should be enhanced to make it more clear. 
> For example, replace the "granted/denied/restrictions" items with a "privileges" structure whose items are the granted or denied privileges.  Each privilege has a "deny" and/or "allow" child whose value is either true (no restrictions) or an array of restrictions + values.
> For example:
> {code:java}
>     "security:acl": [
>         { 
>             "principal": "sling123_user", 
>             "privileges":{
>                 "jcr:read": {
>                     "allow": true
>                 },
>                 "jcr:write":{
>                     "allow":{
>                         "rep:glob":"glob1allow"
>                     },
>                     "deny":{
>                         "rep:glob":"glob1deny"
>                     }
>                 }
>             }
>         }
>     ] {code}
>  
> The previous syntax should be preserved for backward compatibility.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)