Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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.