{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "Fixed in the source drop for v1.5.2.1",
    "ClosedDate": "2008-09-10T13:51:59.69-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "this is a duplicate of workitem 5253 (\"Can't zip directory with no files in root directory\") However I couldn't see any way to re-open a closed issue.\n \nThe follow error occurs in versions 1.5.0.11 and 1.5.1.1.\n \nSystem.IndexOutOfRangeException was unhandled by user code\n  Message=\"Index was outside the bounds of the array.\"\n  Source=\"Ionic.Utils.Zip\"\n  StackTrace:\n       at Ionic.Utils.Zip.Shared.TrimVolumeAndSwapSlashes(String pathname) in C:\\e2train\\DotNetZip\\Library\\Shared.cs:line 61\n       at Ionic.Utils.Zip.ZipEntry.NameInArchive(String filename, String DirectoryPathInArchive) in C:\\e2train\\DotNetZip\\Library\\ZipEntry.cs:line 688\n       at Ionic.Utils.Zip.ZipEntry.Create(String filename, String DirectoryPathInArchive, Stream stream) in C:\\e2train\\DotNetZip\\Library\\ZipEntry.cs:line 708\n       at Ionic.Utils.Zip.ZipEntry.Create(String filename, String DirectoryPathInArchive) in C:\\e2train\\DotNetZip\\Library\\ZipEntry.cs:line 676\n       at Ionic.Utils.Zip.ZipFile.AddOrUpdateDirectoryImpl(String DirectoryName, String DirectoryPathInArchive, AddOrUpdateAction Action) in C:\\e2train\\DotNetZip\\Library\\ZipFile.cs:line 1476\n       at Ionic.Utils.Zip.ZipFile.AddDirectory(String DirectoryName, String DirectoryPathInArchive) in C:\\e2train\\DotNetZip\\Library\\ZipFile.cs:line 1450\n       at ComposeBl.Course.ExportCourse(Boolean blnPreview) in C:\\e2train\\wsComposeMain\\Kallidus Compose 5.0\\Main\\Source\\Code\\ComposeBl\\clsCourse.vb:line 2542\n       at ASP.webservices_wsexportcourse_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\\e2train\\wsComposeMain\\Kallidus Compose 5.0\\Main\\Source\\Code\\Compose\\webservices\\wsexportcourse.aspx:line 67\n       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)\n       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)\n       at System.Web.UI.Page.Render(HtmlTextWriter writer)\n       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)\n       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)\n       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)\n       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)",
    "LastUpdatedDate": "2013-05-16T05:32:40.157-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2008-08-28T11:02:50.017-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "IndexOutOfRangeException When attempting to zip a folder with just folders in the root",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 5893
  },
  "FileAttachments": [
    {
      "FileId": 1351,
      "FileName": "UnitTest_WI5893.txt",
      "DownloadUrl": ".\\1351"
    }
  ],
  "Comments": [
    {
      "Message": "I do not believe this is a dupe of 5253.  This may be a duplicate of 5397. \r\nPlease provide a test case that reproduces the failure. \r\n",
      "PostedDate": "2008-08-28T17:22:33.693-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Sent request for a test case directly to Oneiros.",
      "PostedDate": "2008-09-09T13:55:12.197-07:00",
      "Id": -2147483648
    },
    {
      "Message": "This doesn't appear to be related to unc paths (as in WI 5397) .\r\nHave attached a failing unit test that demonstrates the issue.",
      "PostedDate": "2008-09-10T05:12:16.417-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-09-10T05:12:16.993-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Thanks for the test case. \r\nThis is a duplicate, of workitem 5481.   I had already fixed this in the v1.6 library.  (changeset 21086)   \r\nI don't have branches in my source tree, so tell ya what, I'm gonna retrofit this fix into the v1.5 release and just post a new set of downloads for the release.  It's low-risk enough that I feel comfortable doing that. \r\n",
      "PostedDate": "2008-09-10T12:24:12.277-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-09-10T13:51:59.69-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:42.387-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:40.157-07:00",
      "Id": -2147483648
    }
  ]
}