Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2715

Crowd LDAP synchronization does not work if there are two groups of the same name in LDAP directory

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 2.3.3
    • Directory - LDAP, Embedded
    • None

      When doing a sync in JIRA against an AD with two groups of the same name (but in different parts of the tree) you get an exception:

      2011-11-25 10:42:59,893 QuartzWorker-0 ERROR ServiceRunner     [atlassian.crowd.directory.DbCachingDirectoryPoller] Error occurred while refreshing the cache for directory [ 10000 ].
      java.lang.IllegalArgumentException: duplicate key: confluence-users
      	at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:62)
      	at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:210)
      	at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:196)
      	at com.google.common.collect.Maps.uniqueIndex(Maps.java:456)
      	at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseMemberships(AbstractCacheRefresher.java:126)
      	at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:44)
      	at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseAll(UsnChangedCacheRefresher.java:223)
      	at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:619)
      	at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:63)
      	at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50)
      	at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJob.execute(DirectoryPollerJob.java:34)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      	at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      

      This stops any group memberships from being synchronised into JIRA.

            [CWD-2715] Crowd LDAP synchronization does not work if there are two groups of the same name in LDAP directory

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1509816 ] New: JAC Bug Workflow v3 [ 3364775 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1392238 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1509816 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 354963 ] New: Simplified Crowd Development Workflow v2 [ 1392238 ]
            joe made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Verified [ 10005 ] New: Resolved [ 5 ]
            joe made changes -
            Link New: This issue relates to CWD-2681 [ CWD-2681 ]
            Foong (Inactive) made changes -
            Status Original: Open [ 1 ] New: Verified [ 10005 ]
            bain created issue -

              Unassigned Unassigned
              bbain bain
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: