Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 53577 invoked from network); 17 Aug 2009 09:24:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Aug 2009 09:24:31 -0000 Received: (qmail 64211 invoked by uid 500); 17 Aug 2009 09:24:37 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 64133 invoked by uid 500); 17 Aug 2009 09:24:37 -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 64125 invoked by uid 99); 17 Aug 2009 09:24:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 09:24:37 +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; Mon, 17 Aug 2009 09:24:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C979F234C044 for ; Mon, 17 Aug 2009 02:24:14 -0700 (PDT) Message-ID: <673482885.1250501054811.JavaMail.jira@brutus> Date: Mon, 17 Aug 2009 02:24:14 -0700 (PDT) From: "Lars Michele (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2257) Removal of a node with shared subnodes fails In-Reply-To: <475138535.1250035094794.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Michele updated JCR-2257: ------------------------------ Attachment: ShareableNodeTest.java.patch Here comes the complete TestCase :-) > Removal of a node with shared subnodes fails > -------------------------------------------- > > Key: JCR-2257 > URL: https://issues.apache.org/jira/browse/JCR-2257 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 2.0-alpha7 > Reporter: Lars Michele > Attachments: EventStateCollection.java.patch, SessionItemStateManager.java.patch, SessionItemStateManager.java.patch, ShareableNodeTest.java.patch > > > A simple testcase: > Set up (first transaction): > Node a1 = testRootNode.addNode("a1"); > Node a2 = testRootNode.addNode("a2"); > a2.addMixin("mix:shareable"); > session.save(); > // now we have a shareable node N with path a2 > Workspace workspace = session.getWorkspace(); > String path = a1.getPath() + "/b1"; > workspace.clone(workspace.getName(), a2.getPath(), path, false); > session.save(); > // now we have another shareable node N' in the same shared set as N with path a1/b1 > Test(second transaction): > testRootNode.remove("a1"); > session.save(); > At least in a transactional repository the node will not be removed, an error will be thrown instead. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.