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

Can't use Session.importXML with protected definitions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.3.0.Final
    • 3.2.0.Final
    • JCR
    • None

    Description

      When trying to import (a jackrabbit 2.4.4 system export) I got this error

      javax.jcr.nodetype.ConstraintViolationException: Unable to determine a valid node definition for the node "/importTestNode/b/rep:policy" in workspace "defaultWorkspace" of "My Repository"
      at org.modeshape.jcr.AbstractJcrNode.validateChildNodeDefinition(AbstractJcrNode.java:1213)
      at org.modeshape.jcr.AbstractJcrNode.addChildNode(AbstractJcrNode.java:1045)

      When dealing with protected node definitions, it appears the code is doing a "return null" when it should be doing "continue".

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            tedtrippin Rob Haycock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: