Bug 780901 (SOA-3364)

Summary: Exception when restoring a version
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Van Halbert <vhalbert>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.2.0.ER3CC: fnguyen
Target Milestone: ---   
Target Release: 5.2.0.ER4   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3364
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-03 13:43:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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