-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2/package endpoint does not match specification #106
Comments
Great find! This seems like a bug on nuget.org or documentation that should be cleaned up! My gut feeling is that we should stick to the specification. Or maybe we could fallback to reading the request's body if EDIT: nuget.org uses |
Will do that. Same as nuget.org. |
I opened an issue on NuGet's documentation: https://github.com/NuGet/docs.microsoft.com-nuget/issues/1076 |
I just started testing as found this exact issue when using paket to push to the V2 endpoint. |
I got this working with paket now. I haven't opened a PR yet, but if you like to cherry-pick ai-traders@1826580 That's not the only thing for paket to work though. You'll need #104 too |
I'm ok to wait for now 😀 |
This should be fixed by 1f1ec07 now. Could you verify @BlythMeister? |
Closing this issue as it should now be fixed. Feel free to open a new issue if you run into any other problems! |
Do you want to request a feature or report a bug?
Bug / question
What did you do?
I have started porting e2e tests from nuget.org. One of first things that fails is upload into
v2/package
endpoint. I am a bit confused since in 3.0 specification it says that upload should be a multipart form. But actual nuget.org tests just stream the nupkg directly to endpoint.@loic-sharma what do think, should BaGet accept
multipart/form-data
orapplication/octet-stream
atv2/package
?Currently when client from e2e tests is uploading, on server side we get null package and 400:
The text was updated successfully, but these errors were encountered: