{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3131","repository_url":"https://api.github.com/repos/NuGet/NuGetGallery","labels_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3131/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3131/comments","events_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3131/events","html_url":"https://github.com/NuGet/NuGetGallery/pull/3131","id":165649852,"number":3131,"title":"Change routes from packages/<action> to packages/manage/<action> to avoid conflicts with package ids","user":{"login":"scottbommarito","id":18014088,"avatar_url":"https://avatars.githubusercontent.com/u/18014088?v=3","gravatar_id":"","url":"https://api.github.com/users/scottbommarito","html_url":"https://github.com/scottbommarito","followers_url":"https://api.github.com/users/scottbommarito/followers","following_url":"https://api.github.com/users/scottbommarito/following{/other_user}","gists_url":"https://api.github.com/users/scottbommarito/gists{/gist_id}","starred_url":"https://api.github.com/users/scottbommarito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottbommarito/subscriptions","organizations_url":"https://api.github.com/users/scottbommarito/orgs","repos_url":"https://api.github.com/users/scottbommarito/repos","events_url":"https://api.github.com/users/scottbommarito/events{/privacy}","received_events_url":"https://api.github.com/users/scottbommarito/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NuGet/NuGetGallery/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-14T20:21:48Z","updated_at":"2016-07-15T07:36:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/pulls/3131","html_url":"https://github.com/NuGet/NuGetGallery/pull/3131","diff_url":"https://github.com/NuGet/NuGetGallery/pull/3131.diff","patch_url":"https://github.com/NuGet/NuGetGallery/pull/3131.patch"},"body":"Currently, if someone creates a package with an id of \"upload\", \"upload-progress\", \"verify-upload\", or \"cancel-upload\", they can potentially run into conflicts with our routing scheme. In other words, a package with an id of \"upload\" would be impossible to view through `packages/<id>`, because MVC would route it to our upload package path route, `packages/upload`.\r\n\r\nTo avoid conflicts with our system, this PR changes those routes to `packages/manage/upload` and so on. Since `packages/<id>` and `packages/manage/<action>` are now completely distinct routes, users can upload a package with an id equal to any of our actions and view it without any issues. Note that a package id of \"manage\" is also still supported.\r\n\r\nWill be making some additional PRs in different repos to update the references to the old route URLs.\r\n\r\n@maartenba @skofman1 @xavierdecoster \r\n\r\n(Fixes #3130)"},"comment":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/comments/232883907","html_url":"https://github.com/NuGet/NuGetGallery/pull/3131#issuecomment-232883907","issue_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3131","id":232883907,"user":{"login":"maartenba","id":485230,"avatar_url":"https://avatars.githubusercontent.com/u/485230?v=3","gravatar_id":"","url":"https://api.github.com/users/maartenba","html_url":"https://github.com/maartenba","followers_url":"https://api.github.com/users/maartenba/followers","following_url":"https://api.github.com/users/maartenba/following{/other_user}","gists_url":"https://api.github.com/users/maartenba/gists{/gist_id}","starred_url":"https://api.github.com/users/maartenba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maartenba/subscriptions","organizations_url":"https://api.github.com/users/maartenba/orgs","repos_url":"https://api.github.com/users/maartenba/repos","events_url":"https://api.github.com/users/maartenba/events{/privacy}","received_events_url":"https://api.github.com/users/maartenba/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T07:36:54Z","updated_at":"2016-07-15T07:36:54Z","body":"Change looks good, did you verify all views as well? (I saw a couple but not 100% sure those are all, perhaps good to make another pass for the paranoid)"}}
{"actor":{"display_login":"maartenba"}}