-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zip generated by jszip can't be parsed by jszip (but is valid) #97
Comments
I can reproduce the bug with your file and the following nodejs script : var JSZip = require("jszip"), fs = require('fs');
var zip = new JSZip();
zip.file("export17.idbql", fs.readFileSync("export17.idbql"));
var buffer = zip.generate({type:"nodebuffer", compression:"DEFLATE"});
(new JSZip(buffer)).files["export17.idbql"].asText(); If I replace the assertion on the size with a log, I get the following sizes :
It may be a bug with the compression library, I will investigate that tomorrow (almost midnight Paris time). |
That's odd, I am sure I wrote an entire comment this morning here, but it seems it never got submitted. Oh well, boils down to it that the 'competing' zip library was able to parse it neatly, so I switched to that one for the time being. And good luck guys fixing this I guess :) |
Ok, thanks for the bug report :) |
Upstream fixed it, and the update has been merged ! |
The 'attached' zip has been generated by jszip, but triggers a
Bug : uncompressed data size mismatch
error despite working in windows explorer and 7zip test function reporting no errors. The easiest way to reproduce this error is downloading the zip file below and runningzip.files["export17.idbql"].asText()
on it. And just to be clear here, all the other files do work correctly.Zip file triggering bug: https://apriol.com/hosting/dev/myFile%20(13).zip
I mean, I am 'fine' with jszip not being able to open every zip file out there, but at the very least it should support its own zip files. Hope this can be quickly resolved, because I would love using this function in my app.
The text was updated successfully, but these errors were encountered: