IMPORT_UUID_COLLISION_REPLACE_EXISTING removes the existing node + subtree
--------------------------------------------------------------------------

         Key: JCR-271
         URL: http://issues.apache.org/jira/browse/JCR-271
     Project: Jackrabbit
        Type: Bug
    Reporter: scharles


If you try to import a node in between existing hierarchy using 
IMPORT_UUID_COLLISION_REPLACE_EXISTING it removes the sub tree instead of only 
replacing the imported node.

To reproduse - 

1. create /main/sub
2. export /main/sub
3. add nodes under /main/sub/...
4. Session.importXML(.., .., IMPORT_UUID_COLLISION_REPLACE_EXISTING);
You will left with /main/sub only






-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to