-
Bug
-
Resolution: Answered
-
Low
-
None
-
None
-
None
-
Severity 3 - Minor
-
Summary
Exporting backup from Bamboo 5.7.0 and restoring it in Bamboo 6.4.0 will fail due to different config style in administration.xml
Steps to Reproduce
- Export from Bamboo 5.7.0
- Restore it into Bamboo 6.4.0 to upgrade Bamboo
Expected Results
Restore/upgrade successful
Actual Results
The below exception is thrown in the atlassian-bamboo.log file:
2018-03-30 21:13:46,607 ERROR [http-nio-8085-exec-15] [ImportExportManagerImpl] Exception occurred during import com.thoughtworks.xstream.converters.ConversionException: ---- Debugging information ---- cause-exception : java.lang.NullPointerException cause-message : null class : java.util.EnumSet required-type : java.util.EnumSet converter-type : com.thoughtworks.xstream.converters.enums.EnumSetConverter path : /AdministrationConfiguration/deploymentExpiryConfig/expiryTypes line number : 21 class[1] : com.atlassian.bamboo.deployments.expiry.DeploymentExpiryConfig converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter class[2] : com.atlassian.bamboo.configuration.AdministrationConfigurationImpl version : not available ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) ... Caused by: java.lang.NullPointerException at com.atlassian.bamboo.serialization.xstream.PluginsAwareMapper.realClass(PluginsAwareMapper.java:89) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47) at com.thoughtworks.xstream.converters.enums.EnumSetConverter.unmarshal(EnumSetConverter.java:84) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
Notes
Different config style for deployment expiry in administration.xml file
Workaround
Upgrade with the same database as shown in Bamboo Upgrade Guide
This bug has been introduced in the 5.7.1 bugfix release and affects only one of the upgrade paths.
We advise that affected customers shall rather perform in-place upgrade which is the recommended scenario for all types of upgrades.