Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23428

Download of Atlassian SDK from Atlassian package repository fails

      Issue Summary

      When downloading Atlassian Plugin SDK from the Atlassian package repository using the below URL, the download fails.

       

      curl -vfsSL "https://packages.atlassian.com/mvn/maven-atlassian-all/com/atlassian/amps/atlassian-plugin-sdk/${ATLASSIAN_SDK_VER}/atlassian-plugin-sdk-${ATLASSIAN_SDK_VER}.tar.gz" -o atlassian-plugin-sdk.tar.gz 

       

      Steps to Reproduce

      1. Run the above curl command.
      2. it will throw the error instead of downloading the package.

      Expected Results

      Atlassian SDK should get downloaded.

      Actual Results

      The below exception is thrown:

      * The requested URL returned error: 404 Not Found
      * Closing connection 0
      * SSLv3, TLS alert, Client hello (1):
      } [data not shown]
      curl: (22) The requested URL returned error: 404 Not Found 

      Workaround

      Switching the path from /mvn/maven-atlassian-all to /maven-public resolves the issue and the package is then getting downloaded.

      Below is the updated command:

      curl -vfsSL "https://packages.atlassian.com/maven-public/com/atlassian/amps/atlassian-plugin-sdk/${ATLASSIAN_SDK_VER}/atlassian-plugin-sdk-${ATLASSIAN_SDK_VER}.tar.gz" -o atlassian-plugin-sdk.tar.gz

          Form Name

            [BCLOUD-23428] Download of Atlassian SDK from Atlassian package repository fails

            Hi dc4d791e20f5 

             

            Thank you for your efforts to reproduce the problem I have experienced. To make it clear the 404 response is coming only in case the request is started from the Bitbucket Pipeline. Any other client is working perfectly the same way as you documented.

            Could you please recheck whether you are able to download e.g. the version 9.1.1 from the Bitbucket pipeline?

             

            Best Regards,

            István

            p.s.: in the original ticket it was clearly stated that the the issue is occurring only in the Bitbucket pipeline, in this issue it is only implicitly readable from the "Component/s: Pipelines - Run Failures" settings.

            istvan.verhas added a comment - Hi dc4d791e20f5     Thank you for your efforts to reproduce the problem I have experienced. To make it clear the 404 response is coming only in case the request is started from the Bitbucket Pipeline. Any other client is working perfectly the same way as you documented. Could you please recheck whether you are able to download e.g. the version 9.1.1 from the Bitbucket pipeline?   Best Regards, István p.s.: in the original ticket it was clearly stated that the the issue is occurring only in the Bitbucket pipeline, in this issue it is only implicitly readable from the "Component/s: Pipelines - Run Failures" settings.

            Tony Gao added a comment -

            to whom watching this issue,

            we are closing this ticket and going to raise a separate to the correct team that is responsible for handling artifactorys.

            Thanks,

            Tony

            Tony Gao added a comment - to whom watching this issue, we are closing this ticket and going to raise a separate to the correct team that is responsible for handling artifactorys. Thanks, Tony

            Hi Team.  Do we know which version they were attempting to download.

            I have attempted this with version 9.1.1 and was able to successfully download the file

            curl -I https://packages.atlassian.com/mvn/maven-atlassian-all/com/atlassian/amps/atlassian-plugin-sdk/${ATLASSIAN_SDK_VER}/atlassian-plugin-sdk-${ATLASSIAN_SDK_VER}.tar.gz
            HTTP/2 200
            content-type: application/x-gzip
            content-length: 84146633
            server: CloudFront
            date: Wed, 16 Oct 2024 23:48:03 GMT
            x-jfrog-version: Artifactory/7.96.3 79603900
            x-artifactory-id: c12d4ea065aae0ca800b3869d054d3e7f366fdb3
            x-artifactory-node-id: atlassianuseastedge-artifactory-primary-1
            last-modified: Fri, 13 Sep 2024 12:04:05 GMT
            etag: 8d504353e2343995e5206e1c3ae7311b4f037828
            x-checksum-sha1: 8d504353e2343995e5206e1c3ae7311b4f037828
            x-checksum-sha256: b0401ed5e89ff6a5ef20ebbc45f6783169e010ee720a353be20e02addf392776
            x-checksum-md5: 64e09c621d622d58f1686bfa35797ed7
            accept-ranges: bytes
            x-artifactory-filename: atlassian-plugin-sdk-9.1.1.tar.gz
            content-disposition: attachment; filename="atlassian-plugin-sdk-9.1.1.tar.gz"; filename*=UTF-8''atlassian-plugin-sdk-9.1.1.tar.gz
            x-request-id: f3a5674b9779d7c6d5590ec3b1dbb2c9
            cache-control: max-age=0
            x-cache: Miss from cloudfront
            via: 1.1 3262f7038fb2f60f7b35c40afe2b7d60.cloudfront.net (CloudFront)
            x-amz-cf-pop: AKL50-C2
            x-amz-cf-id: gffeRZe51zgW0oji-ZAzpNXm1QEw_AE8FrK9Ne1Cl6knfbvPYfs-kQ== 

            Alistair Bush (Inactive) added a comment - Hi Team.  Do we know which version they were attempting to download. I have attempted this with version 9.1.1 and was able to successfully download the file curl -I https: //packages.atlassian.com/mvn/maven-atlassian-all/com/atlassian/amps/atlassian-plugin-sdk/${ATLASSIAN_SDK_VER}/atlassian-plugin-sdk-${ATLASSIAN_SDK_VER}.tar.gz HTTP/2 200 content-type: application/x-gzip content-length: 84146633 server: CloudFront date: Wed, 16 Oct 2024 23:48:03 GMT x-jfrog-version: Artifactory/7.96.3 79603900 x-artifactory-id: c12d4ea065aae0ca800b3869d054d3e7f366fdb3 x-artifactory-node-id: atlassianuseastedge-artifactory-primary-1 last-modified: Fri, 13 Sep 2024 12:04:05 GMT etag: 8d504353e2343995e5206e1c3ae7311b4f037828 x-checksum-sha1: 8d504353e2343995e5206e1c3ae7311b4f037828 x-checksum-sha256: b0401ed5e89ff6a5ef20ebbc45f6783169e010ee720a353be20e02addf392776 x-checksum-md5: 64e09c621d622d58f1686bfa35797ed7 accept-ranges: bytes x-artifactory-filename: atlassian-plugin-sdk-9.1.1.tar.gz content-disposition: attachment; filename= "atlassian-plugin-sdk-9.1.1.tar.gz" ; filename*=UTF-8''atlassian-plugin-sdk-9.1.1.tar.gz x-request-id: f3a5674b9779d7c6d5590ec3b1dbb2c9 cache-control: max-age=0 x-cache: Miss from cloudfront via: 1.1 3262f7038fb2f60f7b35c40afe2b7d60.cloudfront.net (CloudFront) x-amz-cf-pop: AKL50-C2 x-amz-cf-id: gffeRZe51zgW0oji-ZAzpNXm1QEw_AE8FrK9Ne1Cl6knfbvPYfs-kQ==

              Unassigned Unassigned
              76af9768c127 Snigdha Mishra
              Affected customers:
              1 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: