{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "check the v1.6 prelim release for the updated binary.",
    "ClosedDate": "2008-10-09T13:30:00.683-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "The method private ZipCrypto SetupCipher(string password) throws  BadPasswordException when the password to the archive are correct, I have only tested once with an ZipArchive created by Winrar and where the password were \"test\".\nHere is the code that throws the exception.\n                // CRC check\n                // According to the pkzip spec, the final byte in the decrypted header \n                // is the highest-order byte in the CRC. We check it here. \n                if (DecryptedHeader[11] != (byte)((_Crc32 >> 24) & 0xff))\n                {\n                    throw new BadPasswordException(\"The password did not match.\");\n                }\n \nIf I removes this code and have the correct password everything works nice so I suppose the error lies in this block. Thanks for an extraordinary libary\nIm attatching the file that I have problems with.\nMy version of DotNet Zip Libary is the 1.6 (preview), i will test with the earlier version now.",
    "LastUpdatedDate": "2013-05-16T05:32:38.04-07:00",
    "PlannedForRelease": "1.5 DotNetZip Library",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2008-10-09T06:41:12.41-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "SetupCipher throws BadPasswordException even when the password is correct",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 6408
  },
  "FileAttachments": [
    {
      "FileId": 1467,
      "FileName": "test.zip",
      "DownloadUrl": ".\\1467"
    }
  ],
  "Comments": [
    {
      "Message": "ok, I reproduced your results here.  Let me look into it.  ",
      "PostedDate": "2008-10-09T11:08:22.503-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Turns out there is an undocumented wrinkle in zip file password verification, which is used by infozip and winrar and maybe some other tools.    I implemented a small change to handle that wrinkle.  ",
      "PostedDate": "2008-10-09T13:27:33.263-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-10-09T13:27:57.403-07:00",
      "Id": -2147483648
    },
    {
      "Message": "fixed in change set 25195.  This will be in the v1.6 prelim release.\r\n\r\n** Closed by Cheeso 10/9/2008 1:27 PM",
      "PostedDate": "2008-10-09T13:29:04.357-07:00",
      "Id": -2147483648
    },
    {
      "Message": "re-open to assign to a release.",
      "PostedDate": "2008-10-09T13:29:04.747-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-10-09T13:29:27.84-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-10-09T13:30:00.683-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Fast and good work.",
      "PostedDate": "2008-10-10T01:56:28.743-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:39.613-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:38.04-07:00",
      "Id": -2147483648
    }
  ]
}