jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-2060) JSR 283: Access Nodes and Properties by Array of "NameGlob"
Date Wed, 08 Jul 2009 12:45:14 GMT

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

Stefan Guggisberg commented on JCR-2060:
----------------------------------------

NodeReadMethodsTest.testGetPropertiesNamePatternArray() is IMO wrong.

the test expects the following pattern array to match exactly 1 entry:

new String[]{"jcr:primaryType|jcr:primaryType"}

the implementation returns an empty iterator.

the spec clearly distinguishes between 'Name Pattern' (5.2.2.1) and 'Name Glob' (5.2.2.2).

the latter doesn't need to interpret the pipe metacharacter, at least that's my understanding
of spec and relevant javadoc.

> JSR 283: Access Nodes and Properties by Array of "NameGlob"
> -----------------------------------------------------------
>
>                 Key: JCR-2060
>                 URL: https://issues.apache.org/jira/browse/JCR-2060
>             Project: Jackrabbit Content Repository
>          Issue Type: Sub-task
>          Components: jackrabbit-core, JCR 2.0
>            Reporter: angela
>             Fix For: 2.0.0
>
>
> The proposed final draft contains new variants of Node.getNodes and Node.getProperties:
> - Node.getNodes(String[] nameGlobs)
> - Node.getProperties(String[] nameGlobs)
> see section 5.2.2 Iterating Over Child Items and 5.2.2.2 Name Globs

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message