Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7.2
-
None
-
None
Description
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 :
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()); ..... } }
There should be a way to easily define this property.