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

Nuget Virtual repository not resolving artifacts beyond the first 80 versions (by default)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.20.0, 6.19.1, 7.4.3
    • Component/s: None
    • Labels:
      None
    • Severity:
      Critical
    • Regression:
      Yes

      Description

      Problem Statement:
      In Artifactory version 6.19 - the NuGet virtual repository is not looking for artifact versions beyond the first 80 entries until a version beyond 80 entries is specified.

      Impact:
      The existing builds of the customers using Nuget virtual repositories will fail automatically due to this.

      Steps to reproduce:

      • Use Artifactory v6.19
      • Follow set me up steps for resolving package FluentAssertions from remote repository and similarly from Virtual repository - notice the difference in the version of package donwloaded.

      Actual results:
      Downloaded version from remote and virtual repositories is different for the same package.

      Expected results:
      Downloaded version from remote and virtual repositories should be same.

      On debugging further, I found the issue is happening due to first 80 entries only being looked for from Virtual repositories, i.e. in Artifactory 6.12.x:

        GET http://mill.jfrog.info:12570/artifactory/api/nuget/nuget/FindPackagesById()?id='FluentAssertions'&semVerLevel=2.0.0
        OK http://mill.jfrog.info:12570/artifactory/api/nuget/nuget/FindPackagesById()?id='FluentAssertions'&semVerLevel=2.0.0 2159ms
        GET http://mill.jfrog.info:12570/artifactory/api/nuget/nuget/FindPackagesById()?semVerLevel=2.0.0&id='FluentAssertions'&%24skip=80
        OK http://mill.jfrog.info:12570/artifactory/api/nuget/nuget/FindPackagesById()?semVerLevel=2.0.0&id='FluentAssertions'&%24skip=80 1306ms
        GET http://mill.jfrog.info:12570/artifactory/api/nuget/nuget/FindPackagesById()?semVerLevel=2.0.0&id='FluentAssertions'&%24skip=94
        OK http://mill.jfrog.info:12570/artifactory/api/nuget/nuget/FindPackagesById()?semVerLevel=2.0.0&id='FluentAssertions'&%24skip=94 891ms
      

      v/s Artifactory 6.19:

        GET http://mill.jfrog.info:12510/artifactory/api/nuget/nuget/Download/FluentAssertions/5.3.0
        OK http://mill.jfrog.info:12510/artifactory/api/nuget/nuget/Download/FluentAssertions/5.3.0 2821ms
      

      Workaround:
      Use a remote repository instead/specify version while downloading from Virtual

        Attachments

          Activity

              People

              Assignee:
              ivanp Ivan Perepelytsya [EXT] (Inactive)
              Reporter:
              Disham Disha Meswania
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: