Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20764

Attempting to download an artifact or build log using "curl + personal access token" returns nothing and the command succeeds

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 9.5.0
    • Artifacts
    • None
    • 117
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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

      1. Create a plan with a shared artifact
      2. Run a build
      3. Create a personal access token with full access for a Bamboo admin user
      4. 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>

       

      Attachments

        Issue Links

          Activity

            People

              851f15845f55 Mateusz Szmal
              dsantos Daniel Santos
              Votes:
              51 Vote for this issue
              Watchers:
              38 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: