Uploaded image for project: 'User Profiles for JIRA'
  1. User Profiles for JIRA
  2. UPJ-39

Synchronization fails due to Whitespace in Additional User DN

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Fehlerklasse:
      Leicht
    • Zeitpunkt des Auftretens:
      Abnahme / Betrieb
    • Popularity:
      0

      Description

      If the configuration for the "Additional User DN" in the LDAP Schema settings of the LDAP User Directory configuration contains whitespace, the synchronization fails with an error like the following:

      2014-08-25 11:15:11,148 ajp-127.0.0.1-9009-5 ERROR shf 675x72676x1 1udj5mv 10.10.4.65 /secure/admin/upj/ManualSync.jspa [userprofile.api.synchronization.LdapSynchronizationServiceImpl] synchronization canceled for directory 'Communardo TuA-AD Sync': 
      javax.naming.InvalidNameException:  ,dc=communardo-tua,dc=local: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8350, best match of:
      	',dc=communardo-tua,dc=local'
       ]; remaining name ' ,dc=communardo-tua,dc=local'
      	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3025)
      	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840)
      	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1849)
      	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1772)
      	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:386)
      	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:356)
      	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
      	at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
      	at de.communardo.atlassian.libs.ldap.PagingAwareNamingEnumeration.initSearch(PagingAwareNamingEnumeration.java:47)
      	at de.communardo.atlassian.libs.ldap.PagingAwareNamingEnumeration.<init>(PagingAwareNamingEnumeration.java:41)
      	at de.communardo.atlassian.libs.ldap.LdapDirectoryService.searchEntries(LdapDirectoryService.java:185)
      	at de.communardo.atlassian.libs.ldap.LdapDirectoryService.searchEntries(LdapDirectoryService.java:149)
      	at de.communardo.atlassian.libs.ldap.LdapDirectoryService.searchUsers(LdapDirectoryService.java:111)
      	at de.communardo.atlassian.plugins.userprofile.api.synchronization.LdapSynchronizationServiceImpl$LdapSynchronizationRun.synchronizeUsers(LdapSynchronizationServiceImpl.java:195)
      	at de.communardo.atlassian.plugins.userprofile.api.synchronization.LdapSynchronizationServiceImpl$LdapSynchronizationRun.synchronizeAllUsers(LdapSynchronizationServiceImpl.java:159)
      	at de.communardo.atlassian.plugins.userprofile.api.synchronization.LdapSynchronizationServiceImpl.synchronizeAllUsers(LdapSynchronizationServiceImpl.java:76)
      	at de.communardo.jira.plugins.userprofile.synchronization.ManualSyncAction.doExecute(ManualSyncAction.java:23)  <+1> (ActionSupport.java:165)
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:87)  <+7> (DefaultInterceptorChain.java:39) (NestedInterceptorChain.java:31) (ChainedInterceptor.java:16) (DefaultInterceptorChain.java:35) (GenericDispatcher.java:225) (GenericDispatcher.java:154) (JiraWebworkActionDispatcher.java:152)
      	at javax.servlet.http.HttpServlet.service(Unknown Source)  <+14> (ChainedFilterStepRunner.java:87) (XContentTypeOptionsNoSniffFilter.java:22) (AbstractHttpFilter.java:31) (HeaderSanitisingFilter.java:44) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66)
      	at com.atlassian.jira.tzdetect.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:39)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.jira.baseurl.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:38)  <+8> (AbstractHttpFilter.java:31) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (ContextFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(ServingRequestsFilter.java:37)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsDispatcherFilter.doFilter(PrettyUrlsDispatcherFilter.java:60)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter.doFilter(PrettyUrlsSiteMeshFilter.java:92)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsMatcherFilter.doFilter(PrettyUrlsMatcherFilter.java:56)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36)  <+23> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (AccessLogFilter.java:103) (AccessLogFilter.java:87) (XsrfTokenAdditionRequestFilter.java:54) (SiteMeshFilter.java:181) (SiteMeshFilter.java:85) (SitemeshPageFilter.java:123) (ChainedFilterStepRunner.java:87) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61)  <+22> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (SecurityFilter.java:234) (TrustedApplicationsFilter.java:100) (BaseLoginFilter.java:169) (JiraLoginFilter.java:70) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) (OAuthFilter.java:55) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61)  <+13> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ProfilingFilter.java:99) (JIRAProfilingFilter.java:19) (AbstractJohnsonFilter.java:71)
      	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
      	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)  <+10> (UrlRewriteFilter.java:394) (GzipFilter.java:80) (GzipFilter.java:51) (JiraGzipFilter.java:55) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61)  <+39> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (JWDSendRedirectFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ChainedFilterStepRunner.java:87) (AbstractCachingFilter.java:33) (AbstractHttpFilter.java:31) (AbstractEncodingFilter.java:41) (AbstractHttpFilter.java:31) (PathMatchingEncodingFilter.java:49) (AbstractHttpFilter.java:31) (JiraStartupChecklistFilter.java:78) (ChainedFilterStepRunner.java:87) (JiraFirstFilter.java:57)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              twi Tino Winkler
              Reporter:
              twi Tino Winkler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Work-time