Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1230

S3 Direct Cloud Storage Download causes 400 errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 2 - Critical
    • Resolution: Done
    • Affects Version/s: 3.0.0, 3.2.1
    • Fix Version/s: 3.4.0
    • Component/s: None
    • Labels:
      None

      Description

      In all CI plugin versions, the Direct S3 Download redirects appear to fail with the Artifactory Jenkins Plugin when using download specs.

       

      Steps to reproduce:

      1. Have an Artifactory configured to use Direct Cloud Storage Downloads
        Set the "Minimum Direct Cloud Storage Download Size" to "0" so the pipeline example causes the error
      1. Point an example Jenkins job at the repository
      2. Encounter a 400 error in the Jenkins pipeline:

      [Artifactory request.log]

      20190827214650|8|REQUEST|RESTRICTED_IP|admin|HEAD|/libs-snapshot-local/ArtifactoryPipelineNoProps.zip|HTTP/1.1|200|0

      20190827214650|51|REQUEST|RESTRICTED_IP|admin|GET|/libs-snapshot-local/ArtifactoryPipelineNoProps.zip|HTTP/1.1|302|0

       

      [Jenkins build log]

      Downloading 'RESTRICTED_URL'...
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      java.io.IOException: Error downloading RESTRICTED_URL. Code: 400 Message: Bad Request
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.executeDownload(ArtifactoryDependenciesClient.java:207)
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.downloadArtifact(ArtifactoryDependenciesClient.java:167)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadFile(DependenciesDownloaderHelper.java:240)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadArtifact(DependenciesDownloaderHelper.java:220)
      Caused: java.io.IOException
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadArtifact(DependenciesDownloaderHelper.java:232)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadArtifact(DependenciesDownloaderHelper.java:193)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:131)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:90)
      at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.downloadArtifactsBySpec(SpecsHelper.java:142)
      at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:48)
      at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:20)
      at hudson.FilePath.act(FilePath.java:1078)
      at hudson.FilePath.act(FilePath.java:1061)
      at org.jfrog.hudson.pipeline.common.executors.GenericDownloadExecutor.execute(GenericDownloadExecutor.java:47)
      at org.jfrog.hudson.pipeline.scripted.steps.DownloadStep$Execution.run(DownloadStep.java:73)
      at org.jfrog.hudson.pipeline.scripted.steps.DownloadStep$Execution.run(DownloadStep.java:52)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      at hudson.security.ACL.impersonate(ACL.java:290)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eyalb Eyal Ben Moshe
              Reporter:
              patrickr Patrick Russell
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: