{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2774","labels_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2774/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2774/comments","events_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2774/events","html_url":"https://github.com/NuGet/NuGetGallery/issues/2774","id":115412229,"number":2774,"title":"entry.Name bug for ZIP archives","user":{"login":"darek-msft","id":10715890,"avatar_url":"https://avatars.githubusercontent.com/u/10715890?v=3","gravatar_id":"","url":"https://api.github.com/users/darek-msft","html_url":"https://github.com/darek-msft","followers_url":"https://api.github.com/users/darek-msft/followers","following_url":"https://api.github.com/users/darek-msft/following{/other_user}","gists_url":"https://api.github.com/users/darek-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/darek-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darek-msft/subscriptions","organizations_url":"https://api.github.com/users/darek-msft/orgs","repos_url":"https://api.github.com/users/darek-msft/repos","events_url":"https://api.github.com/users/darek-msft/events{/privacy}","received_events_url":"https://api.github.com/users/darek-msft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-06T01:07:18Z","updated_at":"2015-11-06T01:17:26Z","closed_at":null,"body":"I believe you have a bug in the following code. It should be entry.FullName, not entry.Name.\r\nFile: Gallery\\src\\NuGetGallery.Core\\Packaging\\NupkgRewriter.cs\r\n\r\nSame problem in: Gallery\\src\\NuGetGallery.Core\\Packaging\\Nupkg.cs\r\n\r\n```\r\nusing (var newManifestStream = new MemoryStream())\r\n            {\r\n                manifest.Save(newManifestStream);\r\n                using (var archive = new ZipArchive(readWriteStream, ZipArchiveMode.Update, leaveOpen: true))\r\n                {\r\n                    var manifestEntry = archive.Entries.SingleOrDefault(entry =>\r\n                            entry.Name.IndexOf(\"/\", StringComparison.OrdinalIgnoreCase) == -1\r\n                            && entry.Name.EndsWith(\".nuspec\", StringComparison.OrdinalIgnoreCase)\r\n                        );\r\n\r\n                    using (var manifestOutputStream = manifestEntry.Open())\r\n                    {\r\n                        manifestOutputStream.SetLength(0);\r\n                        newManifestStream.Position = 0;\r\n                        newManifestStream.CopyTo(manifestOutputStream);\r\n                    }\r\n                }\r\n            }\r\n```"},"comment":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/comments/154253405","html_url":"https://github.com/NuGet/NuGetGallery/issues/2774#issuecomment-154253405","issue_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/2774","id":154253405,"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":"2015-11-06T01:17:26Z","updated_at":"2015-11-06T01:17:26Z","body":"We just want to check the file name (no need for full name here)."}}