Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3704

AbstractPrincipalProvider cachesize is not configurable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7.2
    • Fix Version/s: None
    • Component/s: security
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gschneck Geoffroy Schneck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: