Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71872C4E6 for ; Tue, 3 Jul 2012 09:40:03 +0000 (UTC) Received: (qmail 6957 invoked by uid 500); 3 Jul 2012 09:40:03 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 6772 invoked by uid 500); 3 Jul 2012 09:40:03 -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 6755 invoked by uid 99); 3 Jul 2012 09:40:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 09:40:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 09:39:56 +0000 Received: by obfk16 with SMTP id k16so22101649obf.1 for ; Tue, 03 Jul 2012 02:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OQAuLSXrpPJ2ozJi0kYjQ42KFeRiRO+sKX8YmAHWrLc=; b=O9vUSdiGaTxZE9lqdL+uC3qN7vYvDJJ4YHXW6egukY9xK6I/GnV/Iw6HhgeIlWfyDr Qrtef+x37P59utXSm85Wlysli+mp1XfEXZ6xJxam+WFzQvKi+L3hyHq1gMX1Mb6X3RxX A8YjZKzSCvXN7c2aLBKDzhqgCisAfRhcMS4qOJ4GLkqjTFlPl+pxeKWFp+iwtWgbTefM dYno4bKyjcQkz5//S/IuxQfWFJwxHjLuNfIxPHLOTCee5Zlo8fSZI2xi5gTjXlZsXi6t j+kXwQdNGqL+lub1Nqg/mNPNLUDHalcoxh7rYNRO9k440N6AG0yHvMaKQGwMdjFK4lDF eZPg== MIME-Version: 1.0 Received: by 10.182.164.8 with SMTP id ym8mr11929825obb.51.1341308375129; Tue, 03 Jul 2012 02:39:35 -0700 (PDT) Received: by 10.76.101.139 with HTTP; Tue, 3 Jul 2012 02:39:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 Jul 2012 11:39:35 +0200 Message-ID: Subject: Re: Question about same name siblings and authorization From: Stefan Guggisberg To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 3, 2012 at 11:19 AM, Bart van der Schans wrote: > On Tue, Jul 3, 2012 at 11:06 AM, Jukka Zitting wrote: >> Hi, >> >> On Tue, Jul 3, 2012 at 10:55 AM, Bart van der Schans >> wrote: >>> We running into a (potential) issue with same name siblings and >>> authorization and I would like to have some feedback before we try to >>> fix this (if needed at all). >> >> Your problem boils down to having "same name siblings" and >> "authorization" in the same sentence, or perhaps even having same name >> siblings in the first place. You're probably better off if you try to >> avoid the SNS feature entirely. > > We are very aware of this, but unfortunately we are dealing with a bit > of legacy here :-( > >>> Which is a bit odd, because how can the session know there is more >>> than one item sibling? Does anybody knows what the spec has to say >>> about this? >> >> The spec leaves this open by explicitly allowing access control to >> leave gaps in the SNS sequence. It's not an elegant solution, but >> AFAIUI nobody really considered such interactions when the SNS feature >> was specified (IIUC it came up just as a logical consequence of the >> XML import feature). > > Ah, thanks Jukka and Stefan for the quick replies. > > So the "compacts indices" mode for SNS is also allowed (as stated in > paragraph $22.5), but I suspect that may take quite some effort to > implement this in the current code base. And even then it probably > will come at the cost of some performance. i would guess that implementing session-local index compacting would result in pretty nasty code. apart from that i don't see any benefit in doing so as the current behavior is clearly spec-compliant. cheers stefan > > Regards, > Bart