Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 92737 invoked from network); 23 Feb 2010 18:22:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2010 18:22:49 -0000 Received: (qmail 53868 invoked by uid 500); 23 Feb 2010 18:22:48 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 53812 invoked by uid 500); 23 Feb 2010 18:22:48 -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 53804 invoked by uid 99); 23 Feb 2010 18:22:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 18:22:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 18:22:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EFB72234C052 for ; Tue, 23 Feb 2010 10:22:27 -0800 (PST) Message-ID: <583623536.466841266949347980.JavaMail.jira@brutus.apache.org> Date: Tue, 23 Feb 2010 18:22:27 +0000 (UTC) From: "angela (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2472) Calling Workspace.move() may cause inconsistent client state In-Reply-To: <1533383951.372631264006734482.JavaMail.jira@brutus.apache.org> 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-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] angela updated JCR-2472: ------------------------ Component/s: (was: jackrabbit-jcr2spi) jackrabbit-spi2dav executing the code provided by stefan works if executed in spi2jcr but not with spi2dav(ex). i therefore assume that this is a problem with workspace-move in spi2dav -> changing component accordingly. > Calling Workspace.move() may cause inconsistent client state > ------------------------------------------------------------ > > Key: JCR-2472 > URL: https://issues.apache.org/jira/browse/JCR-2472 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-spi2dav > Affects Versions: 2.0-beta6 > Reporter: Stefan Guggisberg > > the following code fragment causes a PathNotFoundException on an existing path > and there seems to be no way to recover the session from this incorrect state: > // assuming an existing nt:file node at path /apps/foo/bar.txt > Node n1 = session.getNode("/apps/foo/bar.txt"); > Node n2 = n1.getNode("jcr:content"); > n2.setProperty("jcr:data", new java.io.ByteArrayInputStream(((String)("blahblah")).getBytes())); > n2.save(); > Workspace ws0 = session.getWorkspace(); > ws0.move("/apps/foo", "/apps/foo1"); > Node n3 = session.getNode("/apps/foo1/bar.txt"); > Node n4 = n3.getNode("jcr:content"); > n4.refresh(false); > Node n5 = n3.getNode("jcr:content"); // => PathNotFoundException > Please note that the preceeding Node.refresh() call seems to cause the inconsistency. > the problem doesn't occur when omitting this call. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.