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

Can't restore while child move under a new added node

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.6.0.Final
    • Fix Version/s: 3.7.0.Final
    • Component/s: None
    • Labels:
      None
    • Environment:

      MacOS X 10.9
      JDK 1.7.21
      modeshape 3.6.0.Final

    • Steps to Reproduce:
      Hide

      1. add a node A
      2. add a node B under A
      3. checkpoint A
      4. add a node C under A
      5. move B under C
      6. save and restore to previous version

      Show
      1. add a node A 2. add a node B under A 3. checkpoint A 4. add a node C under A 5. move B under C 6. save and restore to previous version

      Description

      Got exception while restore a node which move its child node under a new added child node.
      The node with key a7ca2377505d641b70ce97-9fba-4ef9-b573-a93ff077181c has been removed in this session..
      Stacktrace follows:
      212 | node in org.modeshape.jcr.AbstractJcrNode

      • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        2113 | getProperties in ''
        1406 | restoreProperties in org.modeshape.jcr.JcrVersionManager$RestoreCommand
        1135 | execute in ''
        894 | restore . . . . . in org.modeshape.jcr.JcrVersionManager
        685 | restore in ''
        45 | testVersion . . . in VersionService.groovy
        8 | testVersion in VersionController.groovy
        195 | doFilter . . . . in PageFragmentCachingFilter.java
        63 | doFilter in AbstractFilter.java
        1145 | runWorker . . . . in java.util.concurrent.ThreadPoolExecutor
        615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
        722 | run . . . . . . . in java.lang.Thread

      I guess this is caused by the moved child node marked deleted because of the new parent is a new node and not present in the previous version, and it will be removed, also its new children will be removed.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                angelo.chen Angelo Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: