[dna-issues] [JBoss JIRA] Updated: (DNA-355) Wrong Exception Thrown When Creating Reference Value from Non-Referenceable Node
Brian Carothers (JIRA)
jira-events at lists.jboss.org
Wed Apr 15 10:23:37 EDT 2009
[ https://jira.jboss.org/jira/browse/DNA-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: 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