Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-17081

Bamboo is unable to retrieve shared artifact with files/folders containing special characters

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.9.7
    • Fix Version/s: 5.12.0.2
    • Component/s: None
    • Labels:
      None
    • Last commented by user?:
      true
    • Comments:
      4

      Description

      We have a plan with a build job and a tests job.

      • At the end of the build job, we publish a shared artifact of a folder containing test data (files and folders with special characters like BCZEAZrzetrygf216578986%µ%µ%£¨£P¨122&é''(-èè_ç_àçàè)新規フォルダ or 新規フォルダAZER.JPG).
      • In the test job, we have an artifact dependency to retrieve these test data but the job fails with following error
        INFO   | jvm 1    | 2016/01/04 15:43:35 | 2016-01-04 15:43:35,936 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Remote Agent
        INFO   | jvm 1    | 2016/01/04 15:43:35 | 2016-01-04 15:43:35,936 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.v2.build.task.InitializeBuild
        INFO   | jvm 1    | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,936 INFO [0-BAM::B uild-Agent9::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6) VCS sync started
        INFO   | jvm 1    | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,968 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [CheckoutDirectoriesSnapshotHelper] Build working directory is D:\DATA\Bamboo\Builds\PROJ-KEY57-UT
        INFO   | jvm 1    | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask
        INFO   | jvm 1    | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Executing build PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6)
        INFO   | jvm 1    | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Preparing artifact 'Binaries' for use at bin/
        INFO   | jvm 1    | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [AbstractArtifactManager] Trying to retrieve artifact with: class com.atlassian.bamboo.build.artifact BambooRemoteArtifactHandler
        INFO   | jvm 1    | 2016/01/04 15:45:02 | 2016-01-04 15:45:02,001 INFO [remoteEventRebroadcasterMessageListenerContainer-1] [RemoteEventRebroadcasterMessageListener] ExecutableQueueUpdate: addToQueue
        INFO   | jvm 1    | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 ERROR [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [BambooArtifactHttpTransport]
        INFO   | jvm 1    | 2016/01/04 15:45:48 | java.io.IOException: Invalid argument
        INFO   | jvm 1    | 2016/01/04 15:45:48 |       at java.io.WinNTFileSystem.canonicalize0(Native Method)
        INFO   | jvm 1    | 2016/01/04 15:45:48 |       at java.io.Win32FileSystem.canonicalize(Unknown Source)
        INFO   | jvm 1    | 2016/01/04 15:45:48 |       at java.io.File.getCanonicalPath(Unknown Source)
        INFO   | jvm 1    | 2016/01/04 15:45:48 |       at java.io.File.getCanonicalFile(Unknown Source)
        INFO   | jvm 1    | 2016/01/04 15:45:48 |       at com.atlassian.bamboo.util.BambooFileUtils.newFileUnderParent(BambooFileUtils.java:620)
        INFO   | jvm 1    | 2016/01/04 15:45:48 |       at com.atlassian.bamboo.v2.build.agent.messages.ArtifactStreams.deserialiseStreamToDir(ArtifactStreams.java:76)
        INFO   | jvm 1    | 2016/01/04 15:45:48 |       at com.atlassian.bamboo.build.artifact.BambooArtifactHttpTransport.retrieve(BambooArtifactHttpTransport.java:238)
        [BLABLABLABLABLA]
        INFO   | jvm 1    | 2016/01/04 15:45:48 |       at java.lang.Thread.run(UnknownSource)
        INFO   | jvm 1    | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 WARN [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Failure in artifact preparation phase during processing of: Subscription for Shared artifact: [Binaries], pattern: [**/*] anchored at: [bin], destination: [bin]
        INFO   | jvm 1    | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 WARN [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] 1 error(s) found when performing pre-build actions.
        INFO   | jvm 1    | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6) execution finished
        

      As a workaround, we generate a zip and use this zip file as an artifact but it would be great if bamboo is able to handle these files seamlessly

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  1 year, 16 weeks, 5 days ago