{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hello,\n \nI'm experiencing a problem when creating a zipfile using the DotNetZip library.\n \nThis problem occurs when the following 2 conditions are true:\n1. Using the MaxOutputSegmentSize property I set a maximum zip filesize\n2. The total size of created zipfile is smaller then the entered amount and as such only 1 zipfile is created.\n \nThe result is that when calling the ZipFile.CheckZip a BadReadException is thrown and I get the message that the created zipfile is not valid.\n \nExample code:\n        Using zip = New ZipFile\n            zip.AddDirectory(\"D:\\Temp\")\n            zip.MaxOutputSegmentSize = 1000 * 1024\n            zip.Save(\"d:\\test.zip\")\n        End Using\n \n        ZipFile.CheckZip(\"d:\\test.zip\")\n \n \nThe current solution I have is to only set the MaxOutputSegmentSize if more then 1 file will be created, which is hard to known in advance without zipping everything twice.\n \nKind regards,\n \nMichael",
    "LastUpdatedDate": "2015-03-13T12:49:07.467-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2012-01-16T07:40:52.977-08:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "ZipFile.CheckZip fails when using MaxOutputSegmentSize",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 4,
    "Id": 14649
  },
  "FileAttachments": [],
  "Comments": []
}