[
https://jira.jboss.org/jira/browse/DNA-377?page=com.atlassian.jira.plugin...
]
Randall Hauch resolved DNA-377.
-------------------------------
Fix Version/s: 0.4
Resolution: Done
Assignee: Randall Hauch
Applied the patch that handles a path of exactly 2 segments, so that the proper exception
is thrown.
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
Assignee: Randall Hauch
Fix For: 0.4
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