You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "chad davis (JIRA)" <ji...@apache.org> on 2010/03/10 22:08:27 UTC
[jira] Created: (JCR-2558) JQOM DescendantNode Factory Method Node
Path Handling
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.
[jira] Commented: (JCR-2558) JQOM DescendantNode Factory Method
Node Path Handling
Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864793#action_12864793 ]
Marcel Reutegger commented on JCR-2558:
---------------------------------------
Can you please provide a test case? I'm fairly confident that we covered this with several test cases in jackrabbit-jcr-tests.
> 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.