You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Kamil (JIRA)" <ji...@apache.org> on 2015/11/04 15:49:27 UTC

[jira] [Created] (JCR-3930) rep:glob doesn't affect "/"

Kamil created JCR-3930:
--------------------------

             Summary: rep:glob doesn't affect "/"
                 Key: JCR-3930
                 URL: https://issues.apache.org/jira/browse/JCR-3930
             Project: Jackrabbit Content Repository
          Issue Type: Bug
            Reporter: Kamil


while setting privileges one can set rep:nodePath and rep:glob to a particular path:
{noformat}
Map<String, Value> restrictions = new HashMap<String, Value>();
ValueFactory vf = session.getValueFactory();
restrictions.put("rep:nodePath", vf.createValue("/foo", PropertyType.PATH));
restrictions.put("rep:glob", vf.createValue("*"));
{noformat}
where according to this doc http://jackrabbit.apache.org/api/2.2/org/apache/jackrabbit/core/security/authorization/GlobPattern.html:
"*" means all "foo" siblings and the siblings' descendants
"" means this "foo" folder only
and not setting rep:glob at all means "foo" folder and its children.

It works correctly for all path besides "/" where setting rep:glob to "" (empty string) doesn't change anything and user can read all children of "/" but also all its children's descendants



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)