JQOM DescendantNode Factory Method  Node Path Handling
------------------------------------------------------

                 Key: JCR-2558
                 URL: https://issues.apache.org/jira/browse/JCR-2558
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: query
    Affects Versions: 2.0.0
            Reporter: chad davis


I believe there are behavioral issues in the DescendantNode factory creation 
method.

In this case, the factory method requires that a absolute path end with a 
slash, despite the fact that the specification indicates this is not the form 
of an absolute path.

 In other words:

 qomFactory.descendantNode("mySelector","/documents/myFolder" );


does not work, but the following does work:

 qomFactory.descendantNode("mySelector","/documents/myFolder/" );


NOTE:  session.getNode( ) works with both path forms.  For the record,
the JCR specification doesn't show a trailing slash on absolute paths
( Sect. 3.4.4 Absolute and Relative Paths )

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

Reply via email to