{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "non-responsive.",
    "ClosedDate": "2009-08-28T21:12:07.66-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "When calling ExtractAll() I intermittently get the following error:\n\t\tat Ionic.Zip.ZipEntry.InternalExtract(String baseDir, Stream outstream, String password)\\r\\n   \n\t\tat Ionic.Zip.ZipEntry.Extract(String baseDirectory)\\r\\n   \n\t\tat Ionic.Zip.ZipFile._InternalExtractAll(String path, Boolean overrideExtractExistingProperty)\\r\\n   \n\t\tat Ionic.Zip.ZipFile.ExtractAll(String path)\\r\\n   \n\t\tat PrototypeConfigurator.OutputTgbProject.CreateTorqueProject() in D:\\\\Work\\\\TGBNew\\\\trunk\\\\PrototypeConfigurator\\\\PrototypeConfigurator\\\\src\\\\OutputTgbProject.cs:line 85\\r\\n   \n\t\tat PrototypeConfigurator.Program.Main() in D:\\\\Work\\\\TGBNew\\\\trunk\\\\PrototypeConfigurator\\\\PrototypeConfigurator\\\\src\\\\Program.cs:line 21\\r\\n   \n\t\tat System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\\r\\n   \n\t\tat System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\\r\\n   \n\t\tat Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\\r\\n   \n\t\tat System.Threading.ThreadHelper.ThreadStart_Context(Object state)\\r\\n  \n\t\tat System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\\r\\n   \n\t\tat System.Threading.ThreadHelper.ThreadStart()\n \nI am using the same zip file each time and sometimes I get this error and sometimes I don't.  I have tried two seperate ways of calling ExtractAll().  First:\n             ZipFile zip = ZipFile.Read(emptyTgbProjectZipLocation);\n             zip.ExtractAll(OutputDirectory);\n             try\n             {\n                 //performs a rename if it's not across different drives\n                 Directory.Move(OutputDirectory + \"\\\\EmptyTGBProject\", OutputDirectory + \"\\\\\" + ProjectName);\n             }\n             catch (System.IO.IOException)\n             {\n                 //delete the extracted zip folder if there were any exceptions\n                 Directory.Delete(OutputDirectory + \"\\\\EmptyTGBProject\", true);\n                 throw;\n             }\n \n \nAnd Second:\n            zipFileActionDone = false;\n            //use the zip file located in the default output directory\n            //\n            ZipFile zip = ZipFile.Read(emptyTgbProjectZipLocation, this.TgbReadProgress);\n            do\n            {\n            }\n            while (zipFileActionDone == false);\n            zip.ReadProgress -= this.TgbReadProgress;\n \n            zipFileActionDone = false;\n            zip.ExtractProgress += this.TgbExtractProgress;\n            try\n            {      \n                zip.ExtractAll(OutputDirectory);\n            }\n            catch (Exception e)\n            {\n                zip.Dispose();\n                throw;\n            }\n \n            do\n            {\n            }\n            while (zipFileActionDone == false);\n            zip.ExtractProgress -= this.TgbExtractProgress;\n            zip.Dispose();\n \nIn this second method the functions that are called for the extract and read progress events set zipFileActionDone to true when the progress type is Reading_Completed for the read and Extracting_AfterExtractAll for the extract.\n \nThe error seems to occur around file 118 or 119 of a 121 file zip.  When the error occurs it is consistantly around that location, but sometimes the unzip happens without a hitch.\n \nThank you",
    "LastUpdatedDate": "2013-05-16T05:32:11.527-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-08-17T19:56:21.45-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Error in ExtractAll() method",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 8531
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Thanks for the report. \r\nYou said you get an error, but I don't see any error or exception message in your report.  I'll need that at a minimum.\r\n\r\nAlso, if you have a test case, I'd love to have it.   If you can give me the problematic zip file, that would be good too.  Where'd you get the zipfile?  What generated it?\r\n\r\nAnd Your code does some unusual things.  If you want me to make some suggestions, It's probably easier on a discussion thread.  The code will be formatted better, easier to read.\r\n",
      "PostedDate": "2009-08-18T19:09:44.573-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-08-28T21:12:07.66-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:04.567-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:11.527-07:00",
      "Id": -2147483648
    }
  ]
}