[dna-issues] [JBoss JIRA] Updated: (DNA-377) AbstractJcrNode.addNode(String relPath) Throws Wrong Exception if relPath Has Form PropertyName/NodeName
Brian Carothers (JIRA)
jira-events at lists.jboss.org
Tue Apr 21 18:14:22 EDT 2009
[ https://jira.jboss.org/jira/browse/DNA-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Carothers updated DNA-377:
--------------------------------
Attachment: DNA-377.patch
Patch adds case to handle relative path consisting of exactly 2 segments.
> AbstractJcrNode.addNode(String relPath) Throws Wrong Exception if relPath Has Form PropertyName/NodeName
> --------------------------------------------------------------------------------------------------------
>
> Key: DNA-377
> URL: https://jira.jboss.org/jira/browse/DNA-377
> Project: DNA
> Issue Type: Bug
> Components: JCR
> Affects Versions: 0.3
> Reporter: Brian Carothers
> Attachments: DNA-377.patch
>
>
> The TCK test NodeTest.testAddNodeConstraintViolationExceptionProperty fails because DNA throws a PathNotFoundException instead of a ConstraintViolationException when the test attempts to add a child node at the relative path "prop1/node2". By spec, DNA needs to throw a ConstraintViolationException if relPath contains a property. However, DNA currently only checks for the existence of a property if the relative path has more than 2 segments.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the dna-issues
mailing list