Bug 780901 (SOA-3364) - Exception when restoring a version
Summary: Exception when restoring a version
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-3364
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.2.0.ER3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 5.2.0.ER4
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-07 15:45 UTC by Van Halbert
Modified: 2011-11-03 13:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-03 13:43:27 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-3364 0 None None None Never

Description Van Halbert 2011-09-07 15:45:39 UTC
Complexity: Medium
project_key: SOA

After checking in a subgraph (resulting in a new version in the history) where the OPV of a node in the subgraph used COPY, removing a 'mix:referenceable' node that is a child of a node that was COPIED into the version history, and then restoring the version noted, an exception occurs during the restore.

{code}
17:22:41,478 ERROR [STDERR] Caused by: javax.jcr.nodetype.ConstraintViolationException: Unable to determine a valid node definition for the node "/{}VersionStorage/{}VersionedDocumentSections/{}DocumentSection[16]/{}Field" in workspace "workspace" of "JCR Portal"
17:22:41,479 ERROR [STDERR]     at org.modeshape.jcr.SessionCache$NodeEditor.createChild(SessionCache.java:1738)
17:22:41,479 ERROR [STDERR]     at org.modeshape.jcr.JcrVersionManager$RestoreCommand.restoreNode(JcrVersionManager.java:1116)
17:22:41,479 ERROR [STDERR]     at org.modeshape.jcr.JcrVersionManager$RestoreCommand.execute(JcrVersionManager.java:969)
17:22:41,479 ERROR [STDERR]     at org.modeshape.jcr.JcrVersionManager.restore(JcrVersionManager.java:698)
17:22:41,481 ERROR [STDERR]     at org.modeshape.jcr.JcrVersionManager.restore(JcrVersionManager.java:1826)
17:22:41,481 ERROR [STDERR]     at org.oea.jcr.management.impl.JCRManagerImpl.restoreNodeVersion(JCRManagerImpl.java:578)
{code}

where the primary types of the nodes are:

{code}
/oea:ignoreUnstructured/oea:ignoreUnstructured/oea:ignoreUnstructured/oea:copyUnstructured
{code}

and the node types are defined as:

{code}

<oea="http://www.oea.org/ns/oea/1.0">
[oea:unstructured]
orderable
- * (UNDEFINED) multiple
- * (UNDEFINED)
+ * (oea:ignoreUnstructured) = oea:ignoreUnstructured sns IGNORE
+ * (oea:versionUnstructured) = oea:versionUnstructured sns VERSION
+ * (oea:copyUnstructured) = oea:copyUnstructured sns COPY
+ * (oea:unstructured) = oea:unstructured sns
+ * (nt:file) = nt:file sns IGNORE
 
[oea:versionUnstructured]
orderable
- * (UNDEFINED) multiple
- * (UNDEFINED)
+ * (oea:ignoreUnstructured) = oea:ignoreUnstructured sns IGNORE
+ * (oea:versionUnstructured) = oea:versionUnstructured sns VERSION
+ * (nt:file) = nt:file sns
 
[oea:ignoreUnstructured]
orderable
- * (UNDEFINED) multiple
- * (UNDEFINED)
+ * (oea:ignoreUnstructured) = oea:ignoreUnstructured sns IGNORE
+ * (oea:versionUnstructured) = oea:versionUnstructured sns VERSION
+ * (oea:copyUnstructured) = oea:copyUnstructured sns COPY
+ * (nt:file) = nt:file sns IGNORE
 
[oea:copyUnstructured]
orderable
- * (UNDEFINED) multiple
- * (UNDEFINED)
+ * (oea:copyUnstructured) = oea:copyUnstructured sns COPY
+ * (oea:ignoreUnstructured) = oea:ignoreUnstructured sns IGNORE
+ * (nt:file) = nt:file sns IGNORE
{code}

Comment 1 Van Halbert 2011-09-07 15:45:42 UTC
Link: Added: This issue Cloned from MODE-1255


Comment 2 Van Halbert 2011-09-07 15:46:28 UTC
Workflow: Removed: GIT Pull Request workflow  Added: jira
Security: Added: Public


Comment 4 Jiri Pechanec 2011-11-03 13:43:27 UTC
Verified in ER6


Note You need to log in before you can comment on or make changes to this bug.