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

Session.move(...) incorrectly fails if there is already an existing node with the same name in the destination and SNS are allowed

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 1.0.0.Final
    • Fix Version/s: 1.1.0.Final
    • Component/s: JCR
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      The Session.move(...) method is currently checking to see whether the destination parent already has a child with the same name as the node being moved. Per section 7.1.7 of the JCR 1.0.1 specification, "An ItemExistsException is thrown either immediately or on save if a property already exists at destAbsPath or a node already exists there and same-name siblings are not allowed." The method should throw this exception only if SNS are not allowed.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bcarothers Brian Carothers
                Reporter:
                rhauch Randall Hauch
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: