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

Maven Virtual Repo should not go through all the remote repos after finding an artifact

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 5.11.2, 6.4.1
    • Fix Version/s: 6.10.0, 6.9.1
    • Component/s: None
    • Labels:
      None
    • Severity:
      Medium

      Description

      Maven Virtual Repo should not go through all the remote repo after finding a Snapshot artifact with a specific version request.

      Issue details:

      When a Virtual Maven repo has multiple remote repos(around 20 or so) and if the artifact(with specific version) exists in the top remote repo(top in the virtual repo layout) then the artifact should be returned from that top repo and the Virtual repo strategy should not go through the remaining remote repos.

      Steps to reproduce:

      1. For instance, Create five(or any number) remote repos for Maven, all pointing to  https://jcenter.bintray.com (repos with different names)
      2. Create the sixth remote Maven repo pointing to a local Maven repo which has Maven artifacts
      3. Create a Virtual Maven repo with 6 remote repos created earlier
      4. To see the trace and the issue behavior use curl command to attempt to resolve the artifact through the Virtual repo create above
      5. Sample curl command(and artifact with a particular version) used for test:
        curl -uadmin:password http://<artifactory host>:<port>/artifactory/virtual-capital-one/com/1/test-artifactory-maven/1.1-SNAPSHOT/test-artifactory-maven-1.1-20180909.064826-1.jar?trace
        

      This issue was reproduced in 5.11.2, 5.4.12 and latest version 6.4.1

        Attachments

          Activity

            People

            Assignee:
            omriz Omri Ziv
            Reporter:
            pradnyas Pradnya Shinde
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-17578 -
                SYNCHRONIZED
                • Last Sync Date: