Issue Summary
The new authentication with the personal access token is not working when we attempt to download an artifact or build log with curl.
Steps to Reproduce
- Create a plan with a shared artifact
- Run a build
- Create a personal access token with full access for a Bamboo admin user
- Try to download the artifact with the following command:
curl -H "Authorization: Bearer <ACCESS_TOKEN>" \ -X GET '<BAMBOO_URL>/browse/<BUILD-KEY>/artifact/shared/<ARTIFACT_NAME>/<ARTIFACT_FILE>' > <ARTIFACT_FILE>
Expected Results
The artifact will be download or the command will fail.
Actual Results
The artifact is not downloaded and the command succeeds
Workaround
Use plain text authentication (user + password).
curl --user <USER>:<PASSWORD>
-X GET '<BAMBOO_URL>/browse/<BUILD-KEY>/artifact/shared/<ARTIFACT_NAME>/<ARTIFACT_FILE>' > <ARTIFACT_FILE>
[BAM-20764] Attempting to download an artifact or build log using "curl + personal access token" returns nothing and the command succeeds
Remote Link | New: This issue links to "Page (Confluence)" [ 909096 ] |
UIS | Original: 11 | New: 117 |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Waiting for Release [ 12075 ] | New: Closed [ 6 ] |
Fix Version/s | New: 9.5.0 [ 105856 ] |
Status | Original: In Progress [ 3 ] | New: Waiting for Release [ 12075 ] |
Status | Original: Gathering Interest [ 11772 ] | New: In Progress [ 3 ] |
Assignee | New: Mateusz Szmal [ 851f15845f55 ] |
Remote Link |
New:
This issue links to "+core+ Dogfooding › Test Git Branch Detection › feature- |
UIS | Original: 12 | New: 11 |