Details
-
Bug
-
Resolution: Fixed
-
Low
-
6.2.3, 6.4.0
-
Severity 3 - Minor
-
Description
Problem Description
Bamboo will fail to generate an export or backup if there is an artifact FOLDER with the pattern "<NAME>.EXE" (either lower or upercase). This will happen if you check Export artifacts during export. The export will fail with the following error.
2018-03-23 15:20:36,050 ERROR [http-nio-8085-exec-7] [Export] java.io.IOException: /Users/dsantos/atlassian/bamboo/6.4.0/home/exports/export_atlassianbamboo_60404_20180323_9.zip/artifacts/plan-5275661/shared/build-00007/a.exe (not a directory) java.io.IOException: /Users/dsantos/atlassian/bamboo/6.4.0/home/exports/export_atlassianbamboo_60404_20180323_9.zip/artifacts/plan-5275661/shared/build-00007/a.exe (not a directory) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:158) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169) at de.schlichtherle.truezip.file.TBIO.cp_r(TBIO.java:138) at de.schlichtherle.truezip.file.TFile.cp_rp(TFile.java:3317) at com.atlassian.bamboo.migration.XmlMigrator.exportResultFiles(XmlMigrator.java:510)
Steps to replicate
- Create an artifact definition that produces a folder with the name name.exe
- Run the plan and make sure it's successful and the artifact exists.
- Run the export of Bamboo backup and make sure Export artifacts is checked.
In fact, we just need to have a folder with the name format <NAME>.EXE inside any <Bamboo_Home>/artifacts/plan-XXXXX/shared/build-XXXXX/ folder to reproduce this problem.
Workaround
- Change the artifact names to <NAME>_EXE to avoid the problematic patter
- Remove any folders of old build results matching the regex .*\.exe
Attachments
Issue Links
- relates to
-
BAM-13799 Unable to export Bamboo backup if Multi-Byte Character is on the Artifact Definition's name
- Closed