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

Error copying nodes with autocreated subnodes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.7.0.Final
    • 3.6.0.Final
    • JCR
    • None

      There is an error on copying node which has autocreated subnodes.

      If we have node such as

      [test:autocreatedChildren] > nt:hierarchyNode
      + Aaaa (nt:folder) = nt:folder autocreated mandatory copy
      + Bbbb (nt:folder) = nt:folder autocreated mandatory copy
      + Cccc (nt:folder) = nt:folder autocreated mandatory copy
      

      Now we add node of this type on path /a with name nodeForCopy and then copy this node on path /b with name copy, like

      workspace.copy("/a/nodeForCopy", "/b/copy");
      

      we get node copy populated with 6 child nodes and it should be 3. We got:

      copy
      |--Aaaa
      |--Bbbb
      |--Cccc
      |--Aaaa
      |--Bbbb
      `--Cccc
      

              hchiorean Horia Chiorean (Inactive)
              Veskop86 Veselin Perovic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: