Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-20349

NuGet repository returns multiple versions as islatest=true

    XMLWordPrintable

    Details

    • Notability:
      2

      Description

      After upgrading to version 3.17.0-01 we started getting reports of errors downloading a powershell module from a NugGet repository "Unable to install <modulename>, multiple modules matched". After debugging the issue, I found that nugget findpackage uses the api call FindPackagesById()?id='<modulename>&$skip=0&$top=40' which pulls the top 40 packages. In this particular repository there were more than 40 packages. The first set of packages had one with "isLatest" = "true" and "isabsoluteLatest" = True. The next set had different packages and one with "isLatest" = "true" and "isabsoluteLatest" = True. This causes the module to fail to be installed because there are two versions that have isLatest=true.

      This problem did not exist on the previous release with the same exact NuGet repository (I believe it was 3.16.2-01).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moncef Moncef Ben-Soula
              Reporter:
              mbwashburn@mmm.com Brent
              Last Updated By:
              Michael Prescott Michael Prescott
              Team:
              NXRM - Neo
              Votes:
              4 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title