Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E930E668 for ; Thu, 24 Jan 2013 13:35:21 +0000 (UTC) Received: (qmail 67453 invoked by uid 500); 24 Jan 2013 13:35:21 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 67407 invoked by uid 500); 24 Jan 2013 13:35:20 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 67395 invoked by uid 99); 24 Jan 2013 13:35:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2013 13:35:20 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mueller@adobe.com designates 64.18.1.242 as permitted sender) Received: from [64.18.1.242] (HELO exprod6og124.obsmtp.com) (64.18.1.242) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2013 13:35:10 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob124.postini.com ([64.18.5.12]) with SMTP ID DSNKUQE4ePrMx3lKmgIvcyncZWUGI01FgML2@postini.com; Thu, 24 Jan 2013 05:34:49 PST Received: from inner-relay-1.corp.adobe.com (inner-relay-1.adobe.com [153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r0ODYkC9022344 for ; Thu, 24 Jan 2013 05:34:47 -0800 (PST) Received: from nacas03.corp.adobe.com (nacas03.corp.adobe.com [10.8.189.121]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r0ODYkAV027603 for ; Thu, 24 Jan 2013 05:34:46 -0800 (PST) Received: from eurcas01.eur.adobe.com (10.128.4.27) by nacas03.corp.adobe.com (10.8.189.121) with Microsoft SMTP Server (TLS) id 8.3.297.1; Thu, 24 Jan 2013 05:34:46 -0800 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurcas01.eur.adobe.com ([10.128.4.27]) with mapi; Thu, 24 Jan 2013 13:34:44 +0000 From: Thomas Mueller To: "oak-dev@jackrabbit.apache.org" Date: Thu, 24 Jan 2013 13:34:40 +0000 Subject: Re: Accessing ACLs (Was: [jira] [Created] (OAK-581) IndexDefinition for Access Control Content) Thread-Topic: Accessing ACLs (Was: [jira] [Created] (OAK-581) IndexDefinition for Access Control Content) Thread-Index: Ac36N5Hwhmjtsd18SXK1hyKmP99Oxg== Message-ID: In-Reply-To: <510136CD.9090903@adobe.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.5.121010 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Ah OK. Then the only solution to avoid those indexes is to not support the feature I guess. Regards, Thomas On 1/24/13 2:27 PM, "Angela Schreiber" wrote: >hi jukka > >it's not for the access control evaluation nor for access >by path that the query is used... is for the jackrabbit api >extensions that retrieve access control content by principal. > >you don't want a repository traversal there... trust me ;-) > >angela > >On 1/24/13 2:22 PM, Jukka Zitting wrote: >> Hi, >> >> On Thu, Jan 24, 2013 at 10:11 AM, angela (JIRA) wrote: >>> since query is used to retrieve to used retrieve ac content by >>> principal, the ac impl should define an property index for the >>> rep:principalName defined by rep:ACE node type. >> >> Is it essential for the access control code to use query? I would >> assume that it would be both easier (i.e. less code) and more >> efficient to simply read the relevant ACLs directly from the content >> tree being accessed. >> >> BR, >> >> Jukka Zitting