{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 36862.  First binary&#58;  v1.8.4.14",
    "ClosedDate": "2009-07-31T06:41:30.54-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "I am using the latest version of DotNetZip (V 1.8.4.12). \n \nWhen I produce a zipfile that uses a password, WinZip cannot unpack the file.  I tried with WinZip and WinRar , both of them give the same error saying password is wrong. If I create the zipfile without a Password, I am able to extract and view the file with WinZip.\n \nBelow is the logic for creating the zip. \n \n \n \n Response.Clear();\n Response.BufferOutput = false;\n string archiveName = String.Format(\"archive-{0}.zip\",\n                                DateTime.Now.ToString(\"yyyy-MMM-dd- \n                                                                                  HHmmss\"));\n Response.ContentType = \"application/zip\";\n Response.AddHeader(\"content-disposition\", \"attachment;  \n                                                        filename=\" + archiveName);\n \n using (ZipFile zip = new ZipFile())\n {\n    zip.Password = \"123456\";\n    zip.AddFile(@\"C:\\Test.xls\",\"Zipped\");\n    zip.Save(Response.OutputStream);\n }\nHttpContext.Current.ApplicationInstance.CompleteRequest();",
    "LastUpdatedDate": "2013-05-16T05:32:12.963-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-07-30T17:24:13.067-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "DotNetZip produces password-protected zip; WinZip says password is incorrect",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 8271
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "I think I found a temporary solution for this:\r\nInstead of providing Response.OutputStream to the zip.Save() above, I am now downloading it into my local drive and then do a Response.TransmitFile() by giving the path of the archived file.\r\nI don't know whether this is right or not. Any updates on this one would be appreciated.",
      "PostedDate": "2009-07-30T19:04:33.62-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I think I found a temporary solution for this:\r\nInstead of providing Response.OutputStream to the zip.Save() above, I am now downloading it into my local drive and then do a Response.TransmitFile() by giving the path of the archived file.\r\nI don't know whether this is right or not. Any updates on this one would be appreciated.",
      "PostedDate": "2009-07-30T19:04:40.95-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-07-31T06:41:30.54-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:06.643-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:12.963-07:00",
      "Id": -2147483648
    }
  ]
}