-
Bug
-
Resolution: Fixed
-
High
-
6.9.0, 6.9.1
-
Severity 1 - Critical
-
Issue Summary
After upgrading Bamboo to version 6.9.1, accessing the All Deployment Projects page will have a popup window with NullPointerException stack trace
Steps to Reproduce
- Install Bamboo version 6.4.1
- Create Application Link with Bitbucket Server
- Use Bamboo Specs RSS to create deployment project environment in Bamboo
- Upgrade Bamboo to version 6.9.1
No error during upgrade - Access the All Deployment Projects page
Expected Results
There won't be any error
Actual Results
No deployment and environment listed in the page.
There is a popup window with NullPointerException stack trace and the below exception is thrown in the atlassian-bamboo.log file:
2019-06-02 16:39:06,325 WARN [http-nio-80-exec-20] [BambooRuntimeExceptionMapper] Unexpected error from REST call java.lang.NullPointerException at com.atlassian.bamboo.utils.DurationUtils.getRelativeDate(DurationUtils.java:115) at com.atlassian.bamboo.utils.DurationUtils.getRelativeDate(DurationUtils.java:103) at com.atlassian.bamboo.rest.model.repository.RestVcsLocationBambooSpecsState.<init>(RestVcsLocationBambooSpecsState.java:42) at com.atlassian.bamboo.rest.model.repository.RestVcsBambooSpecsSource.<init>(RestVcsBambooSpecsSource.java:25) at com.atlassian.bamboo.rest.model.deployments.projects.RestDeploymentProject.<init>(RestDeploymentProject.java:70) at com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentDashboardResource.lambda$getDeploymentProjects$0(DeploymentDashboardResource.java:116) at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) at com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentDashboardResource.getDeploymentProjects(DeploymentDashboardResource.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Notes
- Bamboo Specs data is stored without SPECS_EXECUTION_DATE previously. After upgrade, the new column is created with NULL data
- Due to this NULL data, Specs Status in the repository does not show this previous Specs build too
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- is cloned as
-
BDEV-15403 Failed to load
[BAM-20470] Accessing All Deployment Projects page have NullPointerException
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 3218856 ] | New: JAC Bug Workflow v3 [ 3386088 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Fix Version/s | New: 6.9.2 [ 87692 ] |
Assignee | New: Marcin Gardias [ mgardias ] |
Regular Expression | New: com\.atlassian\.bamboo\.utils\.DurationUtils\.getRelativeDate(DurationUtils\.java\:115) |
Labels | Original: da-warranty | New: bamboo-bugfix-kanban da-warranty |
Remote Link | New: This issue links to "BDEV-15403 (Jira)" [ 429800 ] |
Component/s | New: Deployments [ 19692 ] | |
Occurrence Factor | New: 10% [ 12830 ] | |
Symptom Severity | Original: Severity 3 - Minor [ 15832 ] | New: Severity 1 - Critical [ 15830 ] |
Status | Original: Needs Triage [ 10030 ] | New: Open [ 1 ] |
klfoong I think the best workaround is to update the DB using an obviously fake date (like 1 year before, or start of epoch, important thing: it must be in the past).