Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1255

Exception when restoring a version

XMLWordPrintable

      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.

      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)
      

      where the primary types of the nodes are:

      /oea:ignoreUnstructured/oea:ignoreUnstructured/oea:ignoreUnstructured/oea:copyUnstructured
      

      and the node types are defined as:

      <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
      

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: