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 494E91747D for ; Mon, 29 Sep 2014 15:21:34 +0000 (UTC) Received: (qmail 22620 invoked by uid 500); 29 Sep 2014 15:21:34 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 22552 invoked by uid 500); 29 Sep 2014 15:21:34 -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 22541 invoked by uid 99); 29 Sep 2014 15:21:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2014 15:21:34 +0000 Date: Mon, 29 Sep 2014 15:21:33 +0000 (UTC) From: "Manfred Baedke (JIRA)" To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (JCR-3704) AbstractPrincipalProvider cachesize is not configurable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Manfred Baedke reassigned JCR-3704: ----------------------------------- Assignee: Manfred Baedke > AbstractPrincipalProvider cachesize is not configurable > ------------------------------------------------------- > > Key: JCR-3704 > URL: https://issues.apache.org/jira/browse/JCR-3704 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: security > Affects Versions: 2.7.2 > Reporter: Geoffroy Schneck > Assignee: Manfred Baedke > > The AbstractPrincipalProvider contains a cache, which stores the the mapping of Principal-String to Principal object; this cache is limited in size by default to 1000 entries. > By default, the init() method where the cache is initialized is called from *org.apache.jackrabbit.core.UserPerWorkspaceSecurityManager* , always with an empty Properties object : > {code}private PrincipalProviderRegistry getPrincipalProviderRegistry(SessionImpl s) throws RepositoryException { > String wspName = s.getWorkspace().getName(); > synchronized (monitor) { > PrincipalProviderRegistry p = ppRegistries.get(wspName); > ....... > PrincipalProvider defaultPP = new DefaultPrincipalProvider(systemSession, (UserManagerImpl) getUserManager(systemSession)); > defaultPP.init(new Properties()); > ..... > } > }{code} > There should be a way to easily define this property. -- This message was sent by Atlassian JIRA (v6.3.4#6332)