Tobias Bocanegra created JCRVLT-261:
---------------------------------------

             Summary: Importing a node with altered nodetype might cause error
                 Key: JCRVLT-261
                 URL: https://issues.apache.org/jira/browse/JCRVLT-261
             Project: Jackrabbit FileVault
          Issue Type: Bug
          Components: Packaging
            Reporter: Tobias Bocanegra


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

 {noformat}
/tmp/test [sling:Folder]
  /jcr:content [nt:unstructured]
{noformat}
now import a package with:

{code}
<?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>
{code}

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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to