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

Wrong "next" link returned when using remote nuget repository with Visual Studio, cause to not see all versions.


    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.6.1, 6.0.1
    • Fix Version/s: 6.6.3
    • Component/s: NuGet
    • Labels:
    • Sprint:
      Leap 35


      Visual studio nuget client using query for nuget package in the following way:


      when the request is made directly to nuget remote repository, the next link is missing the "FindPackagesById()" reference, for example:
      <link rel="next" href="http://localhost:8081/artifactory/api/nuget/nuget-remote/?id=%27YamlDotNet%27&$skip=100"/>

      however, when the request is made to a virtual repository the "FindPackagesById()" reference is exists:
      <link rel="next" href="http://localhost:8081/artifactory/api/nuget/nuget/FindPackagesById()?$skip=80&id=%27YamlDotNet%27"/>

      since the the "FindPackagesById()" reference is missing when using remote repository, visual studio client cannot find all the versions of an artifact in case there are more than 100 versions.

      The workaround for the issue is to include the remote repository in virtual repository, and to use the virtual repository in Visual Studio as package provider

      steps to reproduce:
      1. create nuget remote repo pointing to https://www.nuget.org/

      2. add the remote repos as source in visual studio and search for "YamlDotNet" - you will not find all the versions
      also, you can also enter the following url to see the response (and the missing reference):

      3. create virtual nuget repo and include in it the remote repo from step 1.

      4. add the virtual repo as source in visual studio and search for "YamlDotNet" - you will find all the versions.
      also, you can also enter the following url to see the response:


          Issue Links



              • Assignee:
                rotemk Rotem Kfir
                yehudah Yehuda Hadad
              • Votes:
                3 Vote for this issue
                4 Start watching this issue


                • Created: