Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-11858

Changes to LDAP cache settings are not being picked up due to incorrect name of cache.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 2.5, 2.8
    • None

      This affects both Clustered and non clustered environments.

      The LDAP cache names by default are like below

      		<cache-mapping>
      			<cache-name>com.atlassian.user.impl.ldap.LDAPUserManagerReadOnly.users</cache-name>
      			<scheme-name>user</scheme-name>
      		</cache-mapping>
      
      		<cache-mapping>
      			<cache-name>com.atlassian.user.impl.ldap.LDAPUserManagerReadOnly.users_ro</cache-name>
      			<scheme-name>user</scheme-name>
      		</cache-mapping>
      
      		<cache-mapping>
      			<cache-name>com.atlassian.user.impl.ldap.LDAPUserManagerReadOnly.repositories</cache-name>
      			<scheme-name>user</scheme-name>
      		</cache-mapping>
      
      		<cache-mapping>
      			<cache-name>com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly.groups</cache-name>
      			<scheme-name>user</scheme-name>
      		</cache-mapping>
      		<cache-mapping>
      			<cache-name>com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly.groups_hasMembership</cache-name>
      			<scheme-name>user</scheme-name>
      		</cache-mapping>
      		<cache-mapping>
      			<cache-name>com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly.groups_getGroupsForUser</cache-name>
      			<scheme-name>user</scheme-name>
      		</cache-mapping>
      		<cache-mapping>
      			<cache-name>com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly.repositories</cache-name>
      			<scheme-name>user</scheme-name>
      		</cache-mapping>
      

      However they should be as below

              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.ldap.LDAPUserManagerReadOnly.ldapRepository.users</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.ldap.LDAPUserManagerReadOnly.ldapRepository.users_ro</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.ldap.LDAPUserManagerReadOnly.ldapRepository.repository</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
      
              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly.ldapRepository.groups</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly.ldapRepository.groups_hasMembership</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly.ldapRepository.groups_getGroupsForUser</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly.ldapRepository.repositories</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
      

      Also, the following caches are not defined (by default) and you should add them

      		<cache-mapping>
                  <cache-name>com.atlassian.user.impl.hibernate.HibernateUserManager.hibernateRepository.users</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.hibernate.HibernateUserManager.hibernateRepository.users_ro</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
              <cache-mapping>
                  <cache-name>com.atlassian.user.impl.hibernate.HibernateUserManager.hibernateRepository.repository</cache-name>
                  <scheme-name>user</scheme-name>
              </cache-mapping>
      

              Unassigned Unassigned
              pkamal Partha
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: