{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2379","labels_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2379/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2379/comments","events_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2379/events","html_url":"https://github.com/NuGet/NuGetGallery/issues/2379","id":59892647,"number":2379,"title":"Replacement of a packages with packages with a differently cased ID causes nuget restore to break","user":{"login":"adamralph","id":677704,"avatar_url":"https://avatars.githubusercontent.com/u/677704?v=3","gravatar_id":"","url":"https://api.github.com/users/adamralph","html_url":"https://github.com/adamralph","followers_url":"https://api.github.com/users/adamralph/followers","following_url":"https://api.github.com/users/adamralph/following{/other_user}","gists_url":"https://api.github.com/users/adamralph/gists{/gist_id}","starred_url":"https://api.github.com/users/adamralph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamralph/subscriptions","organizations_url":"https://api.github.com/users/adamralph/orgs","repos_url":"https://api.github.com/users/adamralph/repos","events_url":"https://api.github.com/users/adamralph/events{/privacy}","received_events_url":"https://api.github.com/users/adamralph/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NuGet/NuGetGallery/labels/Priority%20-%201","name":"Priority - 1","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"johnataylor","id":2523898,"avatar_url":"https://avatars.githubusercontent.com/u/2523898?v=3","gravatar_id":"","url":"https://api.github.com/users/johnataylor","html_url":"https://github.com/johnataylor","followers_url":"https://api.github.com/users/johnataylor/followers","following_url":"https://api.github.com/users/johnataylor/following{/other_user}","gists_url":"https://api.github.com/users/johnataylor/gists{/gist_id}","starred_url":"https://api.github.com/users/johnataylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnataylor/subscriptions","organizations_url":"https://api.github.com/users/johnataylor/orgs","repos_url":"https://api.github.com/users/johnataylor/repos","events_url":"https://api.github.com/users/johnataylor/events{/privacy}","received_events_url":"https://api.github.com/users/johnataylor/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-03-05T01:49:43Z","updated_at":"2015-03-21T13:39:52Z","closed_at":null,"body":"Yes, it's a bit of a mouthful, and a really bizarre problem. The background can be found at http://adamralph.com/2015/03/04/nuget-gallery-casing-woes/\r\n\r\nIn short, the original package ID was \"Bau.XUnit\". All versions of it were then removed by the support team. I then pushed several versions of the package with the ID \"Bau.Xunit\". The ID of the package seemed to change from \"Bau.XUnit\" to \"Bau.Xunit\" as expected. However, any download of the package which specifies a specific version (either via install or restore) now fails.\r\n\r\nUsing Fiddler I've discovered the following:\r\n\r\n```Powershell\r\nInstall-Package -Prerelease -Id Bau.Xunit\r\n```\r\n\r\nuses the resource:\r\n\r\nhttps://www.nuget.org/api/v2/FindPackagesById()?id=%27Bau.Xunit%27\r\n\r\nand this resource responds perfectly, without any error, and the operation goes on to succeed.\r\n\r\nWhereas the following (and also `nuget restore`)\r\n\r\n```Powershell\r\nInstall-Package -Prerelease -Id Bau.Xunit -Version 0.1.0-beta07\r\n```\r\n\r\nuses the resource:\r\n\r\nhttps://www.nuget.org/api/v2/Packages(Id='Bau.Xunit',Version='0.1.0-beta07')\r\n\r\nand this resource returns an error (even though the status code is 200) which the client cannot process, and the operation fails.\r\n\r\nUntil this is fixed, my package is pretty much dead in the water, since it's impossible to run a restore against it.\r\n\r\nIn the short term, I'm hoping the support team can find a workaround (they are currently looking into it) and I'm hoping that anyone reading this may be able to help point them in the right direction. In the long term I guess it would be good to fix the root cause to prevent this happening again."},"comment":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/comments/84337112","html_url":"https://github.com/NuGet/NuGetGallery/issues/2379#issuecomment-84337112","issue_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2379","id":84337112,"user":{"login":"adamralph","id":677704,"avatar_url":"https://avatars.githubusercontent.com/u/677704?v=3","gravatar_id":"","url":"https://api.github.com/users/adamralph","html_url":"https://github.com/adamralph","followers_url":"https://api.github.com/users/adamralph/followers","following_url":"https://api.github.com/users/adamralph/following{/other_user}","gists_url":"https://api.github.com/users/adamralph/gists{/gist_id}","starred_url":"https://api.github.com/users/adamralph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamralph/subscriptions","organizations_url":"https://api.github.com/users/adamralph/orgs","repos_url":"https://api.github.com/users/adamralph/repos","events_url":"https://api.github.com/users/adamralph/events{/privacy}","received_events_url":"https://api.github.com/users/adamralph/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T13:39:52Z","updated_at":"2015-03-21T13:39:52Z","body":"That makes we wonder if Bau.Xunit simply suffered from some horrible, and hugely unlikely, coincidence."}}