NRE When Package Metadata CatalogPage Leaf returns 404 #13377
Labels
Area:HttpCommunication
Area:Protocol
Client/Server protocol /code around it
Category:Quality Week
Issues that should be considered for quality week
Functionality:SDK
The NuGet client packages published to nuget.org
Priority:2
Issues for the current backlog.
Type:Bug
NuGet Product Used
dotnet.exe, NuGet.exe, NuGet SDK
Product Version
dotnet sdk 8 and almost all versions of NuGet
Worked before?
Issue was introduced in #3462
Impact
It's more difficult to complete my work
Repro Steps & Context
You need to simulate a catalog page list where at least one of the range url 404's.
Here is the JSON my NuGet repo returns:
The first page url returns a valid list of versions in that range ✔️ However the second one 404's and the leaf page ends up being null in the code here: https://github.com/NuGet/NuGet.Client/blob/7ad6fcc9c56c960975c37b2416c7eae1d53ba3fd/src/NuGet.Core/NuGet.Protocol/Resources/PackageMetadataResourceV3.cs#L122-L124
And because the if check is checking the wrong variable I get a NRE.
Verbose Logs
The text was updated successfully, but these errors were encountered: