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.

    Details

    • 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:
      None

      Description

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

      http://localhost:8081/artifactory/api/nuget/nuget-remote/FindPackagesById()?id='YamlDotNet'

      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):
      http://localhost:8081/artifactory/api/nuget/nuget-remote/FindPackagesById()?id=%27YamlDotNet%27

      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:
      http://localhost:8081/artifactory/api/nuget/nuget/FindPackagesById()?id=%27YamlDotNet%27

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: