Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-261

Importing a node with altered nodetype might cause error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None

      Description

      Given a structure with a node type that allows childnodes, eg:

       

      /tmp/test [sling:Folder]
        /jcr:content [nt:unstructured]
      

      now import a package with:

      <?xml version="1.0" encoding="UTF-8"?>
       <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
       jcr:primaryType="nt:folder">
       </jcr:root>
      

      this should change the nodetype of /tmp/test to nt:folder but this fails with contraint violation exception, because the childnodes are not removed before altering the nodetype.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tripod Tobias Bocanegra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: