{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "In the Reduced v1.9.1.8 DotNetZip release there is an issue with renaming an entry.\n\n__To reproduce__\n1. Use another archiver program to create a ZIP archive that contains an entry with a full Windows path (e.g. `C:\\Users\\Test\\Documents\\myfile.txt`).\n2. Let DotNetZip open the archive, rename the file, and save the archive.\n3. The archive now contains _two_ files that seem to point to the same entry. One with the old filename, one with the new filename.\n4. WinRAR thinks the archive is corrupt, 7zip and Windows Explorer will extract either of the two files.\n\n__The code (for step 2)__\n```\nusing (ZipFile zip = ZipFile.Read(\"test.zip\"))\n{\n    ZipEntry entry = zip.Entries.FirstOrDefault(e => Path.GetFileName(e.FileName) == \"myfile.txt\");\n    entry.FileName = Path.Combine(Path.GetDirectoryName(entry.FileName), \"newfile.txt\");\n    zip.Save(@\"test2.zip\");\n}\n```\n\n__The underlying cause__\nWhen renaming an entry the entry with the old filename is removed from `_entries`. However, it uses the normalized filename as the key to remove, but `_entries` (and the entry's `Filename` property) sometimes contains the unnormalized filename (read directly from the file). So the old entry doesn't get removed. It doesn't check that exactly one key-value pair is removed.\n\nThis issue was first encountered by a user who posted a [question on Stackoverflow](http://stackoverflow.com/q/15601189/146622).",
    "LastUpdatedDate": "2016-05-30T05:46:24.203-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2013-03-28T15:35:50.1-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Rename entry problem",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 2,
    "Id": 16130
  },
  "FileAttachments": [],
  "Comments": []
}