sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Delacretaz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SLING-7280) Repoinit: add support for empty rep:glob restriction
Date Thu, 21 Dec 2017 14:35:00 GMT

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

Bertrand Delacretaz commented on SLING-7280:
--------------------------------------------

Implemented in https://github.com/apache/sling-org-apache-sling-jcr-repoinit/commit/87994dd2f090591012721d79eb00727f7a2ba4b6

FWIW It looks like an empty rep:glob restriction does not work for all permissions, I initially
tried with a {{jcr:modifyProperties}} permission and didn't get the expected behavior.

It works fine with {{jcr:read}} as in this example, similar to the test that I added in the
above commit:

{code}
allow jcr:read on /someNode restriction (rep:glob)
{code}

And allows reading /someNode but not its children

Note the repoinit syntax with just {{rep:glob}} as opposed to {{rep:glob,""}} - this is already
supported by the current repoinit parser module, but the repoinit JCR module didn't handle
it so far.

> Repoinit: add support for empty rep:glob restriction
> ----------------------------------------------------
>
>                 Key: SLING-7280
>                 URL: https://issues.apache.org/jira/browse/SLING-7280
>             Project: Sling
>          Issue Type: Bug
>          Components: Repoinit
>    Affects Versions: Repoinit JCR 1.1.6
>            Reporter: angela
>             Fix For: Repoinit JCR 1.1.8
>
>
> [~bdelacretaz], I was asked by a colleague at Adobe how to create a _rep:glob_ restriction
with an empty string value as it is possible and documented with Jackrabbit API. I didn't
find how to do that and suspect that it's simply a bug in the repo init.
> I would appreciate if you could look into this and fix it.
> cc: [~marett]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message