NuGetGallery: V2 Search endpoint does not return all versions when no filter is provided

nuget.exe list -AllVersions expects the Search() OData endpoint to return all versions per ID (while still observing the includePrerelease=true parameter.

Reasoning:

  1. nuget.exe list -AllVersions -source http://www.nuget.org/api/v2 does not return all versions.
  2. MyGet does 😉
  3. It is at least partially plumbed through from the gallery to the V2 search endpoint.
  4. The V2 search endpoint (JSON) supports it with ignoreFilter=true:

I think there the Gallery should pass ignoreFilter=true to the V2 search service when there is no $filter provided to the OData Search() endpoint.

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Reactions: 3
  • Comments: 16 (8 by maintainers)

Commits related to this issue

Most upvoted comments

ETA on fix for this? It’s not possible to automate the delisting of a package if you can’t list all of them. Unfortunately the nuget.org UI makes you delist each version of a package separately. Anyways, seems bad form to be unable to list all versions of a package. Seems like one of the basic operations one would expect.

This is a pretty glaring, annoying bug. We can’t discover different package versions with nuget’s list command. We have an internal package management tool that allows users to specify a wildcard in the version they want, e.g. 4.* to get the latest 4.x.x.x version of a package. Please bump this up in priority and fix ASAP.