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

Unable to download packages from dotnet.myget.org if there are more than 100 versions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Artifactory 6.21.0

    • Severity:
      Medium
    • Requirement Status:

      UNCOVERED

      Description

      Problem Statement:
      Artifactory isn't able to resolve a package version from a remote proxying dotnet.myget.org if there are more than 100 versions for that package.

      Expected behavior:
      Artifactory is able to resolve a package from dotnet.myget.org if there are more than 100 versions of that package

      Steps to reproduce:
      -Set up remote repo proxying https://dotnet.myget.org/F/nuget-build (see setup.png)
      -Try to install Microsoft.Build.NuGetSdkResolver from Artifactory with nuget client or dotnet client (seems to occur for both v2 and v3)

      nuget install Microsoft.Build.NuGetSdkResolver -Source Artifactory
      Feeds used:
      http://mill.jfrog.info:12197/artifactory/api/nuget/nuget-remote

      Installing package 'Microsoft.Build.NuGetSdkResolver' to '/Users/mattheww/Downloads/dotnettest'.
      GET http://mill.jfrog.info:12197/artifactory/api/nuget/nuget-remote/FindPackagesById()?id='Microsoft.Build.NuGetSdkResolver'&semVerLevel=2.0.0
      OK http://mill.jfrog.info:12197/artifactory/api/nuget/nuget-remote/FindPackagesById()?id='Microsoft.Build.NuGetSdkResolver'&semVerLevel=2.0.0 1039ms
      GET http://mill.jfrog.info:12197/artifactory/api/nuget/nuget-remote/FindPackagesById?id='Microsoft.Build.NuGetSdkResolver'&$skiptoken='Microsoft.Build.NuGetSdkResolver','4.8.0-preview4.5302%2B3803820961f4d61c06d07b179dab1d0439ec0d91'
      OK http://mill.jfrog.info:12197/artifactory/api/nuget/nuget-remote/FindPackagesById?id='Microsoft.Build.NuGetSdkResolver'&$skiptoken='Microsoft.Build.NuGetSdkResolver','4.8.0-preview4.5302%2B3803820961f4d61c06d07b179dab1d0439ec0d91' 101ms

      dotnet add package Microsoft.Build.NuGetSdkResolver --version 5.9.0-preview.1.6942 --source http://mill.jfrog.info:12197/artifactory/api/nuget/v3/nuget-remote --interactive
      Determining projects to restore...
      Writing /var/folders/6d/ql72kmb91qb4f34x2ybzt6y00000gp/T/tmpF55dOO.tmp
      info : Adding PackageReference for package 'Microsoft.Build.NuGetSdkResolver' into project '/Users/mattheww/Downloads/dotnettest/dotnettest.csproj'.
      info : Restoring packages for /Users/mattheww/Downloads/dotnettest/dotnettest.csproj...
      info : GET https://api.nuget.org/v3-flatcontainer/microsoft.build.nugetsdkresolver/index.json
      info : GET https://relativity.jfrog.io/artifactory/api/nuget/v3/nuget-anthology/registration-semver2/microsoft.build.nugetsdkresolver/index.json
      info : GET http://mill.jfrog.info:12197/artifactory/api/nuget/v3/nuget-remote/FindPackagesById()?id='Microsoft.Build.NuGetSdkResolver'&semVerLevel=2.0.0
      info : NotFound https://api.nuget.org/v3-flatcontainer/microsoft.build.nugetsdkresolver/index.json 488ms
      info : NotFound https://relativity.jfrog.io/artifactory/api/nuget/v3/nuget-anthology/registration-semver2/microsoft.build.nugetsdkresolver/index.json 944ms
      info : OK http://mill.jfrog.info:12197/artifactory/api/nuget/v3/nuget-remote/FindPackagesById()?id='Microsoft.Build.NuGetSdkResolver'&semVerLevel=2.0.0 955ms
      info : GET http://mill.jfrog.info:12197/artifactory/api/nuget/nuget-remote/FindPackagesById?id='Microsoft.Build.NuGetSdkResolver'&$skiptoken='Microsoft.Build.NuGetSdkResolver','4.8.0-preview4.5302%2B3803820961f4d61c06d07b179dab1d0439ec0d91'
      info : OK http://mill.jfrog.info:12197/artifactory/api/nuget/nuget-remote/FindPackagesById?id='Microsoft.Build.NuGetSdkResolver'&$skiptoken='Microsoft.Build.NuGetSdkResolver','4.8.0-preview4.5302%2B3803820961f4d61c06d07b179dab1d0439ec0d91' 92ms
      error: NU1102: Unable to find package Microsoft.Build.NuGetSdkResolver with version (>= 5.9.0-preview.1.6942)
      error: - Found 100 version(s) in http://mill.jfrog.info:12197/artifactory/api/nuget/v3/nuget-remote [ Nearest version: 4.8.0-preview4.5302 ]
      error: - Found 0 version(s) in nuget.org
      error: - Found 0 version(s) in ArtifactoryNuGetV3
      error: Package 'Microsoft.Build.NuGetSdkResolver' is incompatible with 'all' frameworks in project '/Users/mattheww/Downloads/dotnettest/dotnettest.csproj'.

      -See that the $next link returns no packages:
      http://mill.jfrog.info:12197/artifactory/api/nuget/nuget-remote/FindPackagesById?id='Microsoft.Build.NuGetSdkResolver'&$skiptoken='Microsoft.Build.NuGetSdkResolver','4.8.0-preview4.5302%2B3803820961f4d61c06d07b179dab1d0439ec0d91'

      -Comparing with when installing from dotnet.myget.org directly using v3, it seems that the client gets the versions from the below (see dotnetrestore.txt):
      https://dotnetmyget.blob.core.windows.net/artifacts/nuget-build/nuget/v3/flatcontainer/microsoft.build.nugetsdkresolver/index.json

      dotnet add package Microsoft.Build.NuGetSdkResolver --version 5.9.0-preview.1.6942 --source https://dotnet.myget.org/F/nuget-build/api/v3/index.json
      Determining projects to restore...
      Writing /var/folders/6d/ql72kmb91qb4f34x2ybzt6y00000gp/T/tmpR0bcCU.tmp
      info : Adding PackageReference for package 'Microsoft.Build.NuGetSdkResolver' into project '/Users/mattheww/Downloads/dotnettest/dotnettest.csproj'.
      info : Restoring packages for /Users/mattheww/Downloads/dotnettest/dotnettest.csproj...
      info : GET https://api.nuget.org/v3-flatcontainer/microsoft.build.nugetsdkresolver/index.json
      info : GET https://relativity.jfrog.io/artifactory/api/nuget/v3/nuget-anthology/registration-semver2/microsoft.build.nugetsdkresolver/index.json
      info : GET https://dotnetmyget.blob.core.windows.net/artifacts/nuget-build/nuget/v3/flatcontainer/microsoft.build.nugetsdkresolver/index.json
      info : NotFound https://api.nuget.org/v3-flatcontainer/microsoft.build.nugetsdkresolver/index.json 459ms
      info : NotFound https://relativity.jfrog.io/artifactory/api/nuget/v3/nuget-anthology/registration-semver2/microsoft.build.nugetsdkresolver/index.json 831ms
      info : OK https://dotnetmyget.blob.core.windows.net/artifacts/nuget-build/nuget/v3/flatcontainer/microsoft.build.nugetsdkresolver/index.json 2084ms
      info : GET https://dotnetmyget.blob.core.windows.net/artifacts/nuget-build/nuget/v3/flatcontainer/microsoft.build.nugetsdkresolver/5.9.0-preview.1.6942/microsoft.build.nugetsdkresolver.5.9.0-preview.1.6942.nupkg

        Attachments

          Issue Links

            Forms

              Activity

                  People

                  Assignee:
                  tamirh Tamir Hadad
                  Reporter:
                  mattheww Matthew Wang
                  Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated: