{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in the v1.5 release.",
    "ClosedDate": "2008-06-07T16:34:04.75-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "One symbol length name leads to IndexOutOfRangeException.\n \nZipFile zip = new ZipFile( @\"Test.zip\" );\nzip.AddDirectory( @\"C:\\Test\\A\", @\"A\" );\nzip.Save(); // here we get IndexOutOfRangeException\n \nWorkaround - set zip.TrimVolumeFromFullyQualifiedPaths to false.",
    "LastUpdatedDate": "2013-05-16T05:32:46.163-07:00",
    "PlannedForRelease": "1.5 DotNetZip Library",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2008-05-23T06:17:42.6-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Short name for ZipEntry",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 4969
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "I just added a test case for this situation.  I do not get the exception you described. \r\ncan you provide full source code of an app that reproduces the behavior you see? \r\nThanks\r\n",
      "PostedDate": "2008-05-24T12:34:16.42-07:00",
      "Id": -2147483648
    },
    {
      "Message": "There were some problems in the Save() code path related to iterating through the entries in the zipfile.  I think I've fixed these as part of the work to add Update capability to the library.  With no test case, I'm closing this work item.  If problems persist, bring me a test case.\r\n",
      "PostedDate": "2008-05-30T07:36:59.87-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-05-30T07:37:21.09-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I looked at the discussions forum and found more details, and a suggested fix! \r\n\r\ni hav found a problem regarding to files (folders?) with small names (smaller than 3 chars in length).\r\nif you try to zip a file with a little filename such as \"R\" (without extension) you get an Subscript out of range error!\r\ni solved this bug by adding a (FileName.Length >= 3) condition to a test. \r\n\r\nSee the  ZipEntry.cs file :\r\n\r\n// *** at Line 852 (v1.3): \r\nif ((TrimVolumeFromFullyQualifiedPaths) && (FileName.Length >= 3) && (FileName[1] == ':') && (FileName[2] == '\\\\')) filenameLength -= 3;\r\n\r\n// *** and also at line 878 (v1.3):\r\nchar[] c = ((TrimVolumeFromFullyQualifiedPaths) && (FileName.Length >= 3) && (FileName[1] == ':') && (FileName[2] == '\\\\')) ?\r\nFileName.Substring(3).Replace(\"\\\\\", \"/\").ToCharArray() : // trim off volume letter, colon, and slash\r\nFileName.Replace(\"\\\\\", \"/\").ToCharArray();",
      "PostedDate": "2008-06-07T16:23:42.25-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Closing - no test case, no repro.\r\n\r\n** Closed by Cheeso 5/30/2008 7:37 AM",
      "PostedDate": "2008-06-07T16:26:21.487-07:00",
      "Id": -2147483648
    },
    {
      "Message": "re-opened - this is a valid bug.  I never did see a repro, but I can see the bug.",
      "PostedDate": "2008-06-07T16:26:21.957-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-06-07T16:26:38.97-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-06-07T16:34:04.75-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:50.583-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:46.163-07:00",
      "Id": -2147483648
    }
  ]
}