]
Brian Carothers updated DNA-355:
--------------------------------
Attachment: DNA-355.patch
Attached patch and modified tests as needed.
Wrong Exception Thrown When Creating Reference Value from
Non-Referenceable Node
--------------------------------------------------------------------------------
Key: DNA-355
URL:
https://jira.jboss.org/jira/browse/DNA-355
Project: DNA
Issue Type: Bug
Components: JCR
Reporter: Brian Carothers
Priority: Minor
Attachments: DNA-355.patch
When invoking JcrSession.getValueFactories.createValue(Node) with a non-referenceable
node as an argument, UnsupportedRepositoryOperationException is thrown (from
node.getUUID(), per spec). The 1.0.1 spec for createValue(Node) indicates that it should
throw a RepositoryException if its argument is not referenceable. The relevant section is
7.1.5.3 with the Javadoc: "A RepositoryException is thrown if the specified Node is
not referenceable, the current Session is no longer active, or another error occurs."
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: