Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 47955 invoked from network); 12 Aug 2009 00:01:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 00:01:38 -0000 Received: (qmail 76744 invoked by uid 500); 11 Aug 2009 23:58:39 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 76712 invoked by uid 500); 11 Aug 2009 23:58:39 -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 76704 invoked by uid 99); 11 Aug 2009 23:58:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 23:58:39 +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, 11 Aug 2009 23:58:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C309D234C004 for ; Tue, 11 Aug 2009 16:58:14 -0700 (PDT) Message-ID: <475138535.1250035094794.JavaMail.jira@brutus> Date: Tue, 11 Aug 2009 16:58:14 -0700 (PDT) From: "Lars Michele (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-2257) Removal of a node with shared subnodes fails 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 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 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.