-
Bug
-
Resolution: Duplicate
-
Major
-
Jenkins 2.121.1
artifact-manager-s3-plugin 1.0-beta-2
When multibranch project contains branch with forward slash in the name (for example `feature/foobar`) corresponding Job gets name `feature%2Ffoobar` from multibranch pipeline plugin.
artifact-manager-s3 plugin later uses this name to generate object key:
https://github.com/jenkinsci/artifact-manager-s3-plugin/blob/master/src/main/java/io/jenkins/plugins/artifact_manager_jclouds/JCloudsArtifactManager.java#L98
As a result generated artifact will be placed in directory hierarchy like this:
projectname/feature%2Ffoobar/1/artifacts/example.txt
However when we try to download this artifact via http url
https://bucketname.s3.amazonaws.com/projectname/feature%2Ffoobar/1/artifacts/example.txt
%2F will be converted to forward slash by browser and request fails with NoSuchKey error from AWS.
When branch name doesn't contain forward slash everything works as expected
- duplicates
-
JENKINS-50591 Files and paths with ampersand cause exception
-
- Resolved
-
- links to
[JENKINS-52151] Forward slash in branch name makes artifact inaccessible
Remote Link | New: This issue links to "CloudBees-internal issue (Web Link)" [ 21109 ] |
Labels | New: multibranch | |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Assignee | New: Jesse Glick [ jglick ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Link |
New:
This issue duplicates |
To be clear, by “download” you mean using a browser download from within the web UI displaying artifacts, right?
Need to verify that copyartifact / unarchive / unstash can perform downloads via presigned URL. That at least should be testable via ArtifactManagerTest.