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

Error copying nodes with autocreated subnodes

    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: JCR
    • Labels:
      None

      Description

      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
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hchiorean Horia Chiorean
                  Reporter:
                  Veskop86 Veselin Perovic
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: