-
Notifications
You must be signed in to change notification settings - Fork 239
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
Add route to match older Nuget.Server uploads #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why the upload route was changed from api/v2/package
to root/
@joelverhagen - thoughts?
Hey just wanted to follow up on this PR. Any movement? |
@ericcoleman Sorry for the delay! I'll put this on my agenda for this week and get back to you soon. |
@ericcoleman I've confirmed the CI gate passes, and will be testing soon. I hope to merge this tomorrow! |
@shishirx34 The route changed in v3.0.0, as part of the WCF to WebApi changes. Discussed offline with @joelverhagen and we don't see any concern with adding back the original upload route. |
Verified with build 39095 |
This change breaks our application. We cannot upgrade from NuGet.Server.V2 3.1.2 to 3.2.0 because of this change. This is a breaking change, so this package should be unlisted and re-released with version 4.0.0. See semver.org for details. We are getting this exception when calling NuGetV2WebApiEnabler.UseNuGetV2WebApiFeed():
We are hosting multiple NuGet feeds on the same web app and passing the routeName as a parameter.
All the above route registrations are taking the routeName parameter into consideration, but not this one. |
@Levente0xFFFF, thanks for the report and we apologise for the inconvenience. Could you open a new GitHub issue so we can track this separately? It seems like a straightforward fix would be to make this route optional. Do you think a bool parameter to this method would be sufficient to solve your problem? |
Between NuGet.Server v2.8.50926.602 and NuGet.Server v3.1.2.0 the route to push a package was changed from
/api/v2/packages
to/nuget
.When using nuget.exe, if using the root url it will append
api/v2/packages
.For example,
This change will allow users to continue to push packages to
api/v2/packages
so they don't have to edit their existing deployment scripts when doing a Nuget.Server upgrade.