You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Oren Zamir <or...@pb.com> on 2014/08/25 21:17:14 UTC

RE: SessionImporter.java bug?

Hi,

Bumping this thread.

I haven't heard anything and thought that maybe the details provided weren't clear.

The java source file in question is org\apache\jackrabbit\core\xml\SessionImporter.java and the section that referred to starts at line 377 (for version - 2.6.3)

Hope to hear something soon.


---------------------------------------------------------------------------
Previous email ....
===============
Hi,

While trying to do an importXML for a sub node that is of a type nt:folder we were getting exceptions  - "javax.jcr.ItemExistsException: Node with the same UUID exists"

However, the node has no Id and the existing node does have an id. Further investigation pointed us to the following block of code -

if (!(existing.getId().equals(id)
                            && (uuidBehavior == ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING
                            || uuidBehavior == ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING))) {
                        throw new ItemExistsException(
                                "Node with the same UUID exists:" + existing);
                    }


Even with the uuidBehavior set to any enum it will throw an exception when the id = null (from the imported xml).

Is this a bug?


Regards,
Oren

________________________________


________________________________