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 "angela (JIRA)" <ji...@apache.org> on 2018/04/05 13:54:00 UTC

[jira] [Commented] (OAK-7233) Improve rep:glob documentation

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

angela commented on OAK-7233:
-----------------------------

when updating the doc, it would be cool to also write some exercises for that topic. Stub is already present at _oak/exercise/security/authorization/accesscontrol/L8_GlobRestrictionTest.java_

> Improve rep:glob documentation
> ------------------------------
>
>                 Key: OAK-7233
>                 URL: https://issues.apache.org/jira/browse/OAK-7233
>             Project: Jackrabbit Oak
>          Issue Type: Documentation
>          Components: core, security
>            Reporter: Konrad Windszus
>            Assignee: angela
>            Priority: Minor
>             Fix For: 1.10
>
>
> The examples at https://jackrabbit.apache.org/oak/docs/security/authorization/restriction.html#Examples do not explicitly mention the root node. For the root node you must never use a {{rep:glob}} starting with {{/}}. 
> Also the following points should be clarified:
> * rep:glob affects both (child)node as well as property access
> * a link towards https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/core/security/authorization/GlobPattern.html would be helpful
> * make clearer how a rep:glob ending with {{/}} is different from one not ending with {{/}}
> Also the description for 
> {{/cat/}} and {{cat/}} seem wrong because IMHO descendants are only considered if the glob uses a {{*}}.
> This was originally triggered via https://issues.apache.org/jira/browse/OAK-7233.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)