Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 61447 invoked from network); 12 Aug 2009 00:31:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 00:31:43 -0000 Received: (qmail 84731 invoked by uid 500); 12 Aug 2009 00:14:37 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 84701 invoked by uid 500); 12 Aug 2009 00:14: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 84683 invoked by uid 99); 12 Aug 2009 00:14:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 00:14: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; Wed, 12 Aug 2009 00:14:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D744E234C045 for ; Tue, 11 Aug 2009 17:12:14 -0700 (PDT) Message-ID: <1563901840.1250035934880.JavaMail.jira@brutus> Date: Tue, 11 Aug 2009 17:12:14 -0700 (PDT) From: "Lars Michele (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Issue Comment Edited: (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:comment-tabpanel&focusedCommentId=12742130#action_12742130 ] Lars Michele edited comment on JCR-2257 at 8/11/09 5:10 PM: ------------------------------------------------------------ The first patch prevents, that an event is fired on the remove of a share, when the parent node of the share was also deleted. The second patch allows the correct calculation of the depth of a transient node, even if a parent node is removed and in the attic. was (Author: lmichele): The first patch prevents, that an event is fired on the remove of a share, when the parent node of the share is deleted. The second patch allows the correct calculation of the depth of a transient node, even if a parent node is removed and in the attic. > 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 > > > 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.