Details
-
Bug
-
Resolution: Fixed
-
High
-
5.15.4
-
None
-
Severity 1 - Critical
-
Description
Summary
When upgrading Bamboo to version 5.15.4 from a version below 5.15.3, the Upgrade Task 51517 : Re-encrypting repositories for plan branches (post-bootstrap) fails with a NullPointerException.
Only customers using "GitHub" repository type are affected.
Steps to Reproduce
- Install Bamboo 5.14.x or lower
- Configure Plan branches
- Upgrade directly to Bamboo 5.15.4
Expected Results
Bamboo successfully upgrades and starts
Actual Results
The upgrade fails, and the below exception is thrown in the <bamboo-home>/logs/atlassian-bamboo.log file:
2017-03-27 14:17:27,331 INFO [15-UpgradeTaskBackgroundThread:pool-30-thread-1] [AbstractUpgradeManager] --------------------------------------------------------------------- 2017-03-27 14:17:27,331 INFO [15-UpgradeTaskBackgroundThread:pool-30-thread-1] [AbstractUpgradeManager] 51517 : Re-encrypting repositories for plan branches (post-bootstrap) 2017-03-27 14:17:27,331 INFO [15-UpgradeTaskBackgroundThread:pool-30-thread-1] [AbstractUpgradeManager] --------------------------------------------------------------------- 2017-03-27 14:17:27,804 INFO [15-UpgradeTaskBackgroundThread:pool-30-thread-1] [UpgradeTask51517ReEncryptPlanBranchRepositories] Updating configuration for repository <repository-name> (<repository-id>) 2017-03-27 14:17:27,811 ERROR [15-UpgradeTaskBackgroundThread:pool-30-thread-1] [AbstractUpgradeManager] java.lang.NullPointerException java.lang.NullPointerException at java.util.HashMap.putMapEntries(HashMap.java:500) at java.util.HashMap.<init>(HashMap.java:489) at com.atlassian.bamboo.collections.message.FinalHashMap.<init>(FinalHashMap.java:15) at com.atlassian.bamboo.vcs.configuration.VcsLocationDefinitionImpl.<init>(VcsLocationDefinitionImpl.java:23) at com.atlassian.bamboo.vcs.configuration.PartialVcsRepositoryDataImpl.<init>(PartialVcsRepositoryDataImpl.java:84) at com.atlassian.bamboo.vcs.configuration.PartialVcsRepositoryDataBuilder.build(PartialVcsRepositoryDataBuilder.java:200) at com.atlassian.bamboo.upgrade.tasks.v5_15.UpgradeTask51517ReEncryptPlanBranchRepositories.upgradeChainBranchRepository(UpgradeTask51517ReEncryptPlanBranchRepositories.java:132) at com.atlassian.bamboo.upgrade.tasks.v5_15.UpgradeTask51517ReEncryptPlanBranchRepositories.upgradeChainBranch(UpgradeTask51517ReEncryptPlanBranchRepositories.java:96) at java.util.ArrayList.forEach(ArrayList.java:1249) at com.atlassian.bamboo.upgrade.tasks.v5_15.UpgradeTask51517ReEncryptPlanBranchRepositories.lambda$doUpgrade$0(UpgradeTask51517ReEncryptPlanBranchRepositories.java:85)
Workaround
Recommended
Restore the backup of your Home directory and database to your previous version, and upgrade to Bamboo 5.15.5 which contains the fix for this issue.