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

AbstractJcrNode.addNode(String relPath) Throws Wrong Exception if relPath Has Form PropertyName/NodeName

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.4
    • 0.3
    • JCR
    • None

      The TCK test NodeTest.testAddNodeConstraintViolationExceptionProperty fails because DNA throws a PathNotFoundException instead of a ConstraintViolationException when the test attempts to add a child node at the relative path "prop1/node2". By spec, DNA needs to throw a ConstraintViolationException if relPath contains a property. However, DNA currently only checks for the existence of a property if the relative path has more than 2 segments.

        1. DNA-377.patch
          3 kB
          Brian Carothers

              rhauch Randall Hauch (Inactive)
              bcarothers_jira Brian Carothers (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: