You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2018/01/15 08:09:00 UTC
[jira] [Created] (JCRVLT-261) Importing a node with altered
nodetype might cause error
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)