Return-Path: X-Original-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 179B0105CD for ; Tue, 16 Apr 2013 14:31:24 +0000 (UTC) Received: (qmail 40362 invoked by uid 500); 16 Apr 2013 14:31:24 -0000 Delivered-To: apmail-jackrabbit-oak-commits-archive@jackrabbit.apache.org Received: (qmail 40333 invoked by uid 500); 16 Apr 2013 14:31:24 -0000 Mailing-List: contact oak-commits-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-commits@jackrabbit.apache.org Received: (qmail 40325 invoked by uid 99); 16 Apr 2013 14:31:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 14:31:24 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anchela@adobe.com designates 64.18.1.208 as permitted sender) Received: from [64.18.1.208] (HELO exprod6og107.obsmtp.com) (64.18.1.208) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 14:31:17 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob107.postini.com ([64.18.5.12]) with SMTP ID DSNKUW1goDpGNd8lToWBp+TF01aJ/k4qVOTe@postini.com; Tue, 16 Apr 2013 07:30:57 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r3GERj1v002066 for ; Tue, 16 Apr 2013 07:27:45 -0700 (PDT) Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r3GERkC4002989 for ; Tue, 16 Apr 2013 07:30:54 -0700 (PDT) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nahub01.corp.adobe.com (10.8.189.97) with Microsoft SMTP Server (TLS) id 8.3.298.1; Tue, 16 Apr 2013 07:29:12 -0700 Received: from angela.corp.adobe.com (10.132.1.90) by eurhub01.eur.adobe.com (10.128.4.111) with Microsoft SMTP Server id 8.3.298.1; Tue, 16 Apr 2013 15:29:10 +0100 Message-ID: <516D6036.20909@adobe.com> Date: Tue, 16 Apr 2013 16:29:10 +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: Subject: Re: svn commit: r1468426 - in /jackrabbit/oak/trunk/oak-core/src: main/java/org/apache/jackrabbit/oak/security/user/UserInitializer.java test/java/org/apache/jackrabbit/oak/security/user/UserInitializerTest.java References: <20130416141844.908652388900@eris.apache.org> In-Reply-To: <20130416141844.908652388900@eris.apache.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org hi marcel can't we just drop the derived node types from the configuration? previously the index mechanism didn't know about node type inheritance but as far as i understood this has been fixed in the mean time. the same would also apply for the access control related index configuration. alex, could you confirm if that would work? thanks angela On 4/16/13 4:18 PM, mreutegg@apache.org wrote: > Author: mreutegg > Date: Tue Apr 16 14:18:44 2013 > New Revision: 1468426 > > URL: http://svn.apache.org/r1468426 > Log: > OAK-779: Add rep:Authorizable to declaringNodeTypeNames of rep:principalName index > > Modified: > jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserInitializer.java > jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserInitializerTest.java > > Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserInitializer.java > URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserInitializer.java?rev=1468426&r1=1468425&r2=1468426&view=diff > ============================================================================== > --- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserInitializer.java (original) > +++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserInitializer.java Tue Apr 16 14:18:44 2013 > @@ -113,7 +113,7 @@ public class UserInitializer implements > if (!index.hasChild("principalName")) { > IndexUtils.createIndexDefinition(index, "principalName", true, > new String[]{REP_PRINCIPAL_NAME}, > - new String[]{NT_REP_GROUP, NT_REP_USER}); > + new String[]{NT_REP_GROUP, NT_REP_USER, NT_REP_AUTHORIZABLE}); > } > if (!index.hasChild("members")) { > IndexUtils.createIndexDefinition(index, "members", false, new String[]{UserConstants.REP_MEMBERS}, null); > > Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserInitializerTest.java > URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserInitializerTest.java?rev=1468426&r1=1468425&r2=1468426&view=diff > ============================================================================== > --- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserInitializerTest.java (original) > +++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserInitializerTest.java Tue Apr 16 14:18:44 2013 > @@ -103,7 +103,7 @@ public class UserInitializerTest extends > Tree princName = oakIndex.getChild("principalName"); > assertIndexDefinition(princName, UserConstants.REP_PRINCIPAL_NAME, true); > String[] declaringNtNames = TreeUtil.getStrings(princName, IndexConstants.DECLARING_NODE_TYPES); > - assertArrayEquals(new String[]{UserConstants.NT_REP_GROUP, UserConstants.NT_REP_USER}, declaringNtNames); > + assertArrayEquals(new String[]{UserConstants.NT_REP_GROUP, UserConstants.NT_REP_USER, UserConstants.NT_REP_AUTHORIZABLE}, declaringNtNames); > > Tree members = oakIndex.getChild("members"); > assertIndexDefinition(members, UserConstants.REP_MEMBERS, false); > >