Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1013

Node.addNode(name) different behavior from JR if NodeType resolves to an abstract

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • 0.19
    • jcr
    • None

    Description

      In Jackrabbit, if you used node.addNode(name) and the NodeType resolved to an abstract like nt:base Jackrabbit still persisted the new Node.

      In Oak a ConstraintViolationException is thrown.

      While the Oak behavior is fully Spec complient, it still may be a migration issue for JR users.

      Attachments

        1. Issue.java
          2 kB
          Christan Keller

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              chkeller Christan Keller
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: