Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 73494 invoked from network); 19 Mar 2008 10:56:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2008 10:56:28 -0000 Received: (qmail 64791 invoked by uid 500); 19 Mar 2008 10:56:14 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 64708 invoked by uid 500); 19 Mar 2008 10:56:14 -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 64678 invoked by uid 99); 19 Mar 2008 10:56:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2008 03:56:14 -0700 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, 19 Mar 2008 10:55:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF235234C0AA for ; Wed, 19 Mar 2008 03:54:24 -0700 (PDT) Message-ID: <900856802.1205924064781.JavaMail.jira@brutus> Date: Wed, 19 Mar 2008 03:54:24 -0700 (PDT) From: "Dominique Pfister (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1487) Transient states should be persisted in depth-first traversal order MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Transient states should be persisted in depth-first traversal order ------------------------------------------------------------------- Key: JCR-1487 URL: https://issues.apache.org/jira/browse/JCR-1487 Project: Jackrabbit Issue Type: Bug Components: jackrabbit-core Affects Versions: none Reporter: Dominique Pfister Assignee: Dominique Pfister Priority: Minor Fix For: 1.5 Inside Node.save(), when filling the list of transient (modified) items, the node itself is added first (if transient) and all transient descendant nodes in depth-first order. This can lead to the following problem with shareable nodes and path-based access management: 1) assume a node N has a shared child S, which is shared with at least one other node N' 2) S.removeShare is invoked: this removes S from the list of child nodes in N 3) N.save is invoked N is persisted first, then S. If a path-based access manager tries to build the path of S after N has been persisted, S will no longer be returned in the list of removed child node entries, and an exception will be thrown. This can be circumvented by adding N last. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.