{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "ok good deal, I&#39;m going to mark this one closed. Thanks for taking the time to research and report it. ",
    "ClosedDate": "2011-07-26T15:56:57.64-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hello. First thanks for the library - I was scared when I saw System.IO.Packaging, and your library is much, *much* easier to use.\n \nI'm using a XmlReader to deserialize some XML files into classes instances. The XML files are zipped, and I've choosen to use ZipInputStream to read the zip file because we are receiving it via a file upload control in an ASP.NET page. When the XML is valid (the reader validates it using a schema), everything works out fine. But if I have an invalid XML file, two things happens:\n \n1. The XmlReader generates an exception, signaling that the XML is invalid - as it is supposed to be;\n2. When the code loops to the next XML file, calling ZipInputStream.GetNextEntry(), a BadReadException is generated - and this is not expected.\n \nI've made some testing, and it seems that when the XmlReader generates the exception during the reading of the XML file, it leaves the current ZipInputStream reading position somewhere in the zipped XML file containing the error; and when we call GetNextEntry(), the ZipInputStream starts reading the next zip file from where it stoped when the exception occurred. As it does not find anything that resembles the beginning of a zipped file, a BadReadException is generated. Of course this is an educated guess, just triyng to nail down the problem. The reason could be completely different.\n \nI've attached a console app that reproduce the behaviour. C# on VS 2010.\n \nExcelent job and thanks again,\n \nGB",
    "LastUpdatedDate": "2013-05-16T05:31:33.363-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2011-07-13T21:36:07.577-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "GetNextEntry() generates BadReadException when last GetNextEntry() was \"interrupted\"",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 13919
  },
  "FileAttachments": [
    {
      "FileId": 4005,
      "FileName": "ConsoleApplication3.zip",
      "DownloadUrl": ".\\4005"
    }
  ],
  "Comments": [
    {
      "Message": "Tested with new version 1.9.1.6003 and the problem did not show up. Seems to be closed.",
      "PostedDate": "2011-07-21T12:33:08.713-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-07-26T15:56:57.64-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:09.433-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:33.363-07:00",
      "Id": -2147483648
    }
  ]
}