hi simon On Thu, May 8, 2008 at 1:20 PM, Simon Jentzsch <[EMAIL PROTECTED]> wrote: > Hi, > > After trying to import a SystemView and replacing the existing nodes > (IMPORT_UUID_COLLISION_REPLACE_EXISTING), i got a Exception: > > Caused by: javax.jcr.ItemExistsException: /core_admin_jcr/website > at > org.apache.jackrabbit.core.xml.SessionImporter.startNode(SessionImporter.java:204) > at > org.apache.jackrabbit.core.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:86) > at > org.apache.jackrabbit.core.xml.SysViewImportHandler.startElement(SysViewImportHandler.java:127) > at > org.apache.jackrabbit.core.xml.ImportHandler.startElement(ImportHandler.java:192) > .... > > I looked at the source and found a strange line in SessionImporter (Line > 202): > > if (! (existing.getId().equals(id) > && (uuidBehavior == > ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING > || uuidBehavior == > ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING))) > > It does not make sense to check the same condition twice, so I believe the > 2nd Check should be > > || uuidBehavior == > ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING. > > > I'm using jackrabbit-core-1.4.1, but after reading the release-notes, it > does not seem to be fixed in 1.4.2. > I hope this will help fix the bug (if it is one).
thanks, it is a bug (https://issues.apache.org/jira/browse/JCR-1512). it has been fixed in the jackrabbit-core-1.4.3 release. cheers stefan > > by > > simon > > > > > ___________________________________________________________ Telefonate ohne > weitere Kosten vom PC zum PC: http://messenger.yahoo.de > >
