Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 042269705 for ; Tue, 27 Sep 2011 14:54:00 +0000 (UTC) Received: (qmail 30568 invoked by uid 500); 27 Sep 2011 14:53:59 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 30525 invoked by uid 500); 27 Sep 2011 14:53:59 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 30516 invoked by uid 99); 27 Sep 2011 14:53:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 14:53:59 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anchela@adobe.com designates 64.18.1.31 as permitted sender) Received: from [64.18.1.31] (HELO exprod6og113.obsmtp.com) (64.18.1.31) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 14:53:52 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob113.postini.com ([64.18.5.12]) with SMTP ID DSNKToHjapz1U0HhuRO2VISri/EhqXNVe6Y+@postini.com; Tue, 27 Sep 2011 07:53:31 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id p8REpxdI022312 for ; Tue, 27 Sep 2011 07:52:00 -0700 (PDT) Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id p8RErHLd001532 for ; Tue, 27 Sep 2011 07:53:28 -0700 (PDT) Received: from eurcas01.eur.adobe.com (10.128.4.27) by nahub01.corp.adobe.com (10.8.189.97) with Microsoft SMTP Server (TLS) id 8.3.192.1; Tue, 27 Sep 2011 07:53:27 -0700 Received: from angela.corp.adobe.com (10.132.1.235) by eurcas01.eur.adobe.com (10.128.4.111) with Microsoft SMTP Server id 8.3.192.1; Tue, 27 Sep 2011 15:53:26 +0100 Message-ID: <4E81E365.5010109@adobe.com> Date: Tue, 27 Sep 2011 16:53:25 +0200 From: Angela Schreiber User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: "users@jackrabbit.apache.org" Subject: Re: AccessControlManagerget - Privileges(path) method problem References: <1315204811293-3790533.post@n4.nabble.com> <1315430373148-3797303.post@n4.nabble.com> <1317120652284-3846776.post@n4.nabble.com> <1317127279511-3847131.post@n4.nabble.com> In-Reply-To: <1317127279511-3847131.post@n4.nabble.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit the current implementation applies the following rules: 1 ace for user principal is always weighted higher than ace for group 2 inherited aces are weighted lower than those defined on the target 3 within an acl the aces for groups are evaluated in the order they are defined thus: if you define a ace for a non-group principal it will always overrule the effect of those ace defined for a group even if inherited or ordered before the group-ace. the reason for this is that from the experience we gained with our products, user-aces are hard to maintain and are only used to allow/deny permissions for a user irrespective of any groups that user may be member of. regards angela On 9/27/11 2:41 PM, bobofer wrote: > I played little more with ACLs and discover this. > If Tom is member of DEV and USR group and if ACEs are arranged like this, > DEV – jcr:write > USR – jcr:read > the Tom has jcr:read privilege( witch is wrong). > > But if I ACEs arrange like this, > DEV – jcr:read > USR – jcr:write > the Tom has jcr:write privilege(right one). > > My conclusion is that Tom gets privileges from LAST principal in ACL, in > this case USR group. > > Any ideas how to fix this? > > -- > View this message in context: http://jackrabbit.510166.n4.nabble.com/AccessControlManagerget-Privileges-path-method-problem-tp3790533p3847131.html > Sent from the Jackrabbit - Users mailing list archive at Nabble.com.