Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-9880

409 error code received from virtual repository artifact resolution may fail builds

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.7.2, 4.7.3
    • Fix Version/s: 4.7.4
    • Component/s: None
    • Labels:
      None

      Description

      Using virtual repository will essentially trigger a 409 error on request made for an artifact that does not exist in a given path.

      Steps to reproduce (on 4.7.3):
      1. Set the artifactory.repo.global.disabled in artifactory.system.properties to false.
      2. Create a virtual repository and aggregate 2 repositories, one snapshot and one release (not necessary step since most instances will already include such a repo)
      3. Making a request for an artifact will result in a 409, example command:

      curl -uadmin:password "http://192.168.59.128:8081/artifactory/repo/org/grails/grails-dependencies/2.4.3/grails-dependencies-2.4.3.jar?trace"
      

      Returned output:

      2016-04-15T15:56:47.571+03:00 Original response status is auth related = false
      2016-04-15T15:56:47.571+03:00 Using original response status of '409' and message 'The repository 'ext-snapshot-local' rejected the artifact 'ext-snapshot-local:org/grails/grails-dependencies/2.4.4/grails-dependencies-2.4.4.jar' due to its snapshot/release handling policy.'
      2016-04-15T15:56:47.571+03:00 Sending error with status 409 and message 'The repository 'ext-snapshot-local' rejected the artifact 'ext-snapshot-local:org/grails/grails-dependencies/2.4.4/grails-dependencies-2.4.4.jar' due to its snapshot/release handling policy.'
      2016-04-15T15:56:47.571+03:00 Executing any AfterDownloadErrorAction user plugins that may exist
      2016-04-15T15:56:47.571+03:00 Response code wasn't modified by the user plugins
      2016-04-15T15:56:47.571+03:00 Sending response with the status '409' and the message 'The repository 'ext-snapshot-local' rejected the artifact 'ext-snapshot-local:org/grails/grails-dependencies/2.4.4/grails-dependencies-2.4.4.jar' due to its snapshot/release handling policy.'
      

      Sending response with the status '409' and the message 'The repository 'ext-snapshot-local' rejected the artifact 'ext-snapshot-local:org/grails/grails-dependencies/2.4.4/grails-dependencies-2.4.4.jar' due to its snapshot/release handling policy.'

      • Important point:

      Gradle build that will contain this common build script:

      repositories {
         maven {
             url "http://localhost:8080/artifactory/libs-release"
         }
         jcenter()
      }
      

      Will make the build fail as Gradle will 'give up' on a 409 status code instead of the previous 404 returned.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              danf Dan Feldman
              Reporter:
              andreik Andrei Komarov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: