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

nuget list reports multiple versions for each artifact

    XMLWordPrintable

    Details

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

      Artifactory, self-hosted, v7.12.6, Centos 7.

      Nuget.exe 5.8.1 & 5.9.1.

    • Severity:
      Medium
    • Team:
      dev-artifactory-packages

      Description

      Problem

      We have a self-hosted Artifactory Pro instance, on which we have NuGet repositories set up.

      We have recently populated those NuGet repos with our legacy packages from a older system.

      If I run the command:

      nuget.exe list -Source <URL>

      I get multiple returned values for each package, even though this command should only display the latest for each package.

      This is the case with Nuget.exe 5.8.1 and 5.9.1 on Artifactory. Those same nuget.exe versions accessing Azure DevOps or filesystem based package repos do not display the problem.

      Steps to reproduce

      Populate 30+ versions for 1 package in a Artifactory Nuget repo within an on-premises server. If nuget.exe is run with the additional -Verbosity Detailed argument, it indicates the following GET calls:

      https://<URL>/Search()?$filter=IsLatestVersion&$orderby=Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0

      where the skip value is incremented by 30 each call. In the reponse multiple <entry> tags are shown for each package. If i do the similar process on a DevOps repo, the response only contains a single <entry> per package (which contains the info for the latest version of that package).

       Actual results

      Multiple versions shown for each package

      Expected results

      Single (latest) version shown for each package

      Workarounds

      None

      Customer Impact

      Lack of desire to move to Artifactory and/or need to write additional code to filter incorrect additional items..

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Fletch Graham Fletcher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

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