Open donnie-msft opened 4 years ago
@joelverhagen @loic-sharma @donnie-msft Can you tell us more about this scenario and what prompted it? What does the service return? At first glance, this seems like a server-side issue to me?
I don't know the full thing that prompted this, but my understanding was that Donnie was doing some testing of push and encountered a situation where client pushes a package with package type SymbolsPackage
(clearly a symbols package, irrespective of file name) to the package publish endpoint. The server rejected this because, per protocol symbols, packages must be pushed to the dedicated symbols endpoint to be ingested properly.
Consider the service index: https://api.nuget.org/v3/index.json
Client could, theoretically, check the package types of the pushed file and use the appropriate push endpoint depending on the package types.
This is the .nuspec from a .snupkg:
The corresponding .nupkg does not have a package type.
Using the file extension to determine whether symbols are being pushed is not reliable.
Repro:
Pack a
.snupkg
then change the file extension to.symbols.nupkg
. Push the.symbols.nupkg
.Expected:
On
push
-SymbolSource
is required parameter since this is a Symbol push.Actual:
Created after a discussion with @joelverhagen & @loic-sharma /cc @zkat