Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-508

TCK: NodeTest#testAddNodeItemExistsException fails if validation deferred until save

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • test
    • None

    Description

      The test expects addNode to fail if a same-name sibling already exists. JSR-170 allows this validation to be deferred until save.

      Proposal: call save in the "try" block.

      — NodeTest.java (revision 422074)
      +++ NodeTest.java (working copy)
      @@ -380,6 +391,7 @@
      try

      { // try to add a node with same name again defaultTestNode.addNode(nodeName3, testNodeType); + defaultRootNode.save(); fail("Adding a node to a location where same name siblings are not allowed, but a node with same name" + " already exists should throw ItemExistsException "); }

      catch (ItemExistsException e) {

      Attachments

        Activity

          People

            Unassigned Unassigned
            dpitfiel David Pitfield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: