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

Issue with Workspace merge

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.2.0.Final
    • 3.1.3.Final
    • JCR
    • None

    Description

      I was trying to merge 2 workspaces but for some reason merge is not merging the workspaces correctly.

      Following is the CND details

      [Parent] > mix:versionable
        - name (string) copy
        + * (Child) version
       
       
      [Child] > mix:versionable
        - name (string) copy
      

      Following is the test code

      Session session = repository.login("default");
              
      session.getWorkspace().createWorkspace("original");
      session = repository.login("original");
        
      Node root = session.getRootNode();  
      Node parent1 = root.addNode("parent1", "Parent");
      session.save();
        
      Node child1 = parent1.addNode("child1", "Child");
      session.save();
        
      session.getWorkspace().createWorkspace("clone", "original");
      session = repository.login("clone");
        
      Node child2 = session.getNode("/parent1").addNode("child2", "Child");
      session.save();
       
      session = repository.login("original");  
      vm = session.getWorkspace().getVersionManager(); 
       
      NodeIterator ni = vm.merge("/", "clone", true);
      session.save();
       
      session.getNode("/parent1/child2") // this call is throwing path not found exception.
      

      Attachments

        Activity

          People

            oleg.kulikov Oleg Kulikov (Inactive)
            satyakishor.m Satya M (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: