User Directory Synchronisation fails with error username argument cannot be null or blank

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Directory - LDAP
    • None
    • 1

      Steps to replicate

      1. Setup a new User Directory with AD
      2. Under user schema, change the user Attribute to any attribute in AD that might contain null value
      3. Save and Synchronize

      Expected Behavior
      Crowd should skip the problematic user, and continue to synchronize instead of failing the whole synchronization

      Error in the logs
      **

      2023-04-18 10:11:47,559 Caesium-2-2 INFO [directory.ldap.monitoring.TimedSupplier] Timed call for search with handler on........ took 301380ms
      2023-04-18 10:11:47,559 Caesium-2-2 ERROR [atlassian.crowd.directory.DbCachingRemoteDirectory] Exception occured when performing full synchronization
      java.lang.IllegalArgumentException: username argument cannot be null or blank
      at org.apache.commons.lang3.Validate.isTrue(Validate.java:158)
      at com.atlassian.crowd.model.user.UserTemplate.<init>(UserTemplate.java:35)2023-04-18 10:11:47,571 Caesium-2-2 INFO [atlassian.crowd.directory.DbCachingRemoteDirectory] failed synchronisation complete for directory [ 524290 ] in [ 301398ms ]
      2023-04-18 10:11:47,603 Caesium-2-2 ERROR [atlassian.crowd.directory.DbCachingDirectoryPoller] Error occurred while refreshing the cache for directory [ 524290 ].
      java.lang.IllegalArgumentException: username argument cannot be null or blank
      at org.apache.commons.lang3.Validate.isTrue(Validate.java:158)
      at com.atlassian.crowd.model.user.UserTemplate.<init>(UserTemplate.java:35)
      at com.atlassian.crowd.directory.ldap.mapper.entity.LDAPUserAttributesMapper.mapUserFromAttributes(LDAPUserAttributesMapper.java:89)
      at com.atlassian.crowd.directory.ldap.mapper.UserContextMapper.mapFromContext(UserContextMapper.java:57)
      at com.atlassian.crowd.directory.ldap.mapper.UserContextMapper.mapFromContext(UserContextMapper.java:26)
      at com.atlassian.crowd.directory.ldap.mapper.ContextMapperWithCustomAttributes.mapFromContext(ContextMapperWithCustomAttributes.java:28) 

       

            Assignee:
            Unassigned
            Reporter:
            Shivangi Nayak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: