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

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Directory - LDAP
    • None
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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) 

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: