Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20813

Upgrading to Embedded Crowd with an LDAP configuration missing port will fail with a confusing error

    XMLWordPrintable

Details

    Description

      Issue Summary

      When upgrading Bamboo to a version with Embedded Crowd (6.6+), if the LDAP configuration in <bamboo-home>/xml-data/configuration/atlassian-user.xml does not contain a <port> value, the post-bootstrap upgrade task 60601 will fail with an error:

      2020-02-06 14:22:40,534 ERROR [17-UpgradeTaskBackgroundThread:pool-33-thread-1] [AbstractUpgradeManager] com.atlassian.crowd.exception.runtime.OperationFailedException: For input string: "null"
      com.atlassian.crowd.exception.runtime.OperationFailedException: For input string: "null"
      

      Steps to Reproduce

      1. Install Bamboo 6.2-6.5
      2. Configure an atlassian-user.xml file with an LDAP directory
      3. Remove (or comment out) the <port> value from the atlassian-user.xml
      4. Upgrade to Bamboo 6.6-6.10.4

      Expected Results

      Upgrade will be successful, and new Bamboo version starts

      Actual Results

      The upgrade tasks fail, and the following exception is thrown in the atlassian-bamboo.log file:

      2020-02-06 14:22:40,534 ERROR [17-UpgradeTaskBackgroundThread:pool-33-thread-1] [AbstractUpgradeManager] com.atlassian.crowd.exception.runtime.OperationFailedException: For input string: "null"
      com.atlassian.crowd.exception.runtime.OperationFailedException: For input string: "null"
      	at com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl.testConnection(CrowdDirectoryServiceImpl.java:102)
      	at com.atlassian.bamboo.crowd.DelegatingCrowdDirectoryService.testConnection(DelegatingCrowdDirectoryService.java:33)
      	at com.atlassian.bamboo.upgrade.tasks.v6_6.ec.LdapRepositoryConfigurationMigrator.migrateAndTestConnection(LdapRepositoryConfigurationMigrator.java:283)
      

      Workaround

      Update atlassian-user.xml to include the <port>...</port>.

      Attachments

        Issue Links

          Activity

            People

              mgardias Marcin Gardias
              ezeidan Elias Zeidan (they/them)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: