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 2011/05/03 21:08:03 UTC

[jira] [Commented] (JCR-2937) ACL with glob restrictions does not work on '/'

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

Tobias Bocanegra commented on JCR-2937:
---------------------------------------

hoi.
danke!

aber:

char[] tm = (toMatch.endsWith("/")) ? toMatch.substring(0,
toMatch.length()-1).toCharArray() : toMatch.toCharArray();

ist ja wohl ober-lahm (==inperformant) :-) wie waers mit:

char[] tm = toMatch.toCharArray();
len = tm.length;
if (tm[len-1] == '/') len--;
return matches(patternChars, 0, tm., len)

ps: der muss auch ins crx 2.2. soll ich einen bug machen?
gruss, t




> ACL with glob restrictions does not work on '/'
> -----------------------------------------------
>
>                 Key: JCR-2937
>                 URL: https://issues.apache.org/jira/browse/JCR-2937
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.2.2
>            Reporter: Tobias Bocanegra
>            Assignee: angela
>             Fix For: 2.3.0
>
>
> i tried to define a ACL on '/' that would allow 'read' on '/' itself, but not for the nodes underneath. i tried "*", "/*", "./*" but none of them seem to do the desired effect.
> eg:
> everyone,allow,jcr:read, '/'
> everyone,deny,jcr:read, '/', glob="/*"
> the same works for a non-root node.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira