[dna-issues] [JBoss JIRA] Resolved: (DNA-355) Wrong Exception Thrown When Creating Reference Value from Non-Referenceable Node

Randall Hauch (JIRA) jira-events at lists.jboss.org
Wed Apr 15 10:29:08 EDT 2009


     [ https://jira.jboss.org/jira/browse/DNA-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved DNA-355.
-------------------------------

    Fix Version/s: 0.4
       Resolution: Done
         Assignee: Randall Hauch


Applied the patch, which corrects JcrSession.getValueFactories.createValue(Node) witto throw a RepositoryException (rather than an UnsupportedRepositoryOperationException) when a non-referenceable node is given as an argument, and which modifies some unit 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
>            Assignee: Randall Hauch
>            Priority: Minor
>             Fix For: 0.4
>
>         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