{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 79356.  First binary to contain this fix&#58;  v1.9.1.6",
    "ClosedDate": "2011-06-17T20:38:28.313-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hi，\n \nI found a bug, when compressing(actually archiving) a .rar or .zip file into segments, particularly if the file is large enough to generate more than one segment, DotNetZip will throw a \"FileNotFoundException\", saying that the XXX.z01 doesn't exists.  From the code, it seems the method WantReadAgain(file: ZipEntry.Writer.cs) returns true if compressed size is larger than original size, and that will direct to method \"TruncateBackward\" (file: ZipSegmentedStream.cs) which generates the exception.\n \nthe exception is thrown from the following code:\n \n \n \n// get a new temp file, try 3 times:\n            for (int i = 0; i < 3; i++)\n            {\n                try\n                {\n                    _currentTempName = SharedUtilities.InternalGetTempFileName();\n                    File.Move(CurrentName, _currentTempName);  // move the .z0x file back to a temp name\n                }\n                catch(IOException)\n                {\n                    if (i == 2) throw;\n                }\n            }",
    "LastUpdatedDate": "2013-05-16T05:31:44.723-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-08-25T16:40:18.243-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Bug when compressing .rar or .zip file",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 3,
    "Id": 11818
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "This seems like the same bug as #10143 at http://dotnetzip.codeplex.com/workitem/10143?ProjectName=dotnetzip   (Splitting Large (~1gb+) files leads to an exception)\r\n",
      "PostedDate": "2010-09-05T23:32:23.563-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-09-06T00:17:36.877-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Yes, this is a duplicate bug.  It is fixed in v1.9.1.6, which will be available soon.",
      "PostedDate": "2011-06-17T20:37:52.88-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-17T20:38:28.313-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:27.363-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:44.723-07:00",
      "Id": -2147483648
    }
  ]
}