Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83833D099 for ; Tue, 19 Jun 2012 10:10:46 +0000 (UTC) Received: (qmail 47357 invoked by uid 500); 19 Jun 2012 10:10:46 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 47080 invoked by uid 500); 19 Jun 2012 10:10:45 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 47019 invoked by uid 99); 19 Jun 2012 10:10:44 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 10:10:44 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 5573B14285F for ; Tue, 19 Jun 2012 10:10:44 +0000 (UTC) Date: Tue, 19 Jun 2012 10:10:44 +0000 (UTC) From: "angela (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <559981761.29097.1340100644353.JavaMail.jiratomcat@issues-vm> In-Reply-To: <785549137.16999.1332762028519.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3279) ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING and ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING not working over davex MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396642#comment-13396642 ] angela commented on JCR-3279: ----------------------------- so: fixing a issue is ImportUUIDBehavior would not address your problem that users and acl exported from jackrabbit-core cannot be imported with jcr2spi. > ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING and ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING not working over davex > --------------------------------------------------------------------------------------------------------------------------------------------- > > Key: JCR-3279 > URL: https://issues.apache.org/jira/browse/JCR-3279 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-spi2dav > Affects Versions: 2.4 > Reporter: David Buchmann > > i have a repository with a node like this: > > > nt:unstructured > > > mix:referenceable > > > 842e61c0-09ab-42a9-87c0-308ccc90e6f4 > > > when i try to import that node a second time at a different location, i only get things to work with ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW. the COLLISION_THROW throws an exception as expected. but when telling to replace or remove the existing node, i get > Exception in thread "main" javax.jcr.RepositoryException: javax.jcr.ItemExistsException: a node with uuid 842e61c0-09ab-42a9-87c0-308ccc90e6f4 already exists! > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:69) > at org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:51) > at org.apache.jackrabbit.spi2davex.RepositoryServiceImpl$BatchImpl.start(RepositoryServiceImpl.java:611) > at org.apache.jackrabbit.spi2davex.RepositoryServiceImpl$BatchImpl.access$600(RepositoryServiceImpl.java:547) > at org.apache.jackrabbit.spi2davex.RepositoryServiceImpl.submit(RepositoryServiceImpl.java:452) > at org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.execute(WorkspaceManager.java:858) > at org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.access$500(WorkspaceManager.java:817) > at org.apache.jackrabbit.jcr2spi.WorkspaceManager.execute(WorkspaceManager.java:620) > at org.apache.jackrabbit.jcr2spi.state.SessionItemStateManager.save(SessionItemStateManager.java:139) > at org.apache.jackrabbit.jcr2spi.ItemImpl.save(ItemImpl.java:250) > at org.apache.jackrabbit.jcr2spi.SessionImpl.save(SessionImpl.java:333) > at Client.main(Client.java:31) > my code is dead simple. init jackrabbit over davex, then > session.importXML("/path", new FileInputStream("base.xml"), ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); > jackrabbit actually tries to send something over the wire: > -/idExample : > +/idExample : {"jcr:primaryType":"nt:file","jcr:uuid":"842e61c0-09ab-42a9-87c0-308ccc90e6f4"} > ^/idExample/jcr:mixinTypes : [] > +/idExample/jcr:content : {"jcr:primaryType":"nt:unstructured"} > i wonder if the jsop implementation on server side is broken or if i misunderstand something. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira