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

Bad Request downloading artifact in v3.5.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 3 - High
    • Resolution: Duplicate
    • Affects Version/s: 3.5.0
    • Fix Version/s: None
    • Component/s: Maven3
    • Labels:
      None
    • Environment:

      Jenkins 2.206 

      Artifactory 4.15.0 (CE)

      Artifactory plugin 3.5.0

      maven 3.5.X

       

      Description

      We migrated Artifactory plugin  from version v3.4.1 to v3.5.0. 

      The pipeline jobs are broken because an  error downloading artifacts. It worked in version 3.4.1.

      I checked version release notes and it says nothing about an api change. So I guess it might be a bug.

      Stack trace
      java.io.IOException: Failed to search artifact by the aql 'items.find({"artifact.module.build.name": "xxxxxxxxxxxxx","artifact.module.build.number": "182"}).include("actual_sha1")': HTTP/1.1 400 Bad Request
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.getResponseStream(ArtifactoryDependenciesClient.java:144)
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.searchArtifactsByAql(ArtifactoryDependenciesClient.java:120)
      at org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.fetchBuildArtifactsSha1(AqlHelperBase.java:246)
      at org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.filterResult(AqlHelperBase.java:232)
      at org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.run(AqlHelperBase.java:52)
      at org.jfrog.build.extractor.clientConfiguration.util.ArtifactorySearcher.SearchByFileSpec(ArtifactorySearcher.java:39)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:85)
      at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.downloadArtifactsBySpec(SpecsHelper.java:140)
      at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:51)
      at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:21)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3069)
      at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:369)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            mateofacu Facundo Mateo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: