-
Notifications
You must be signed in to change notification settings - Fork 312
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
Problem unzipping some xlsx files #105
Comments
@jgwconsulting can you share this xls file on which you getting this error? |
Would it be OK if I email it to you direct? It's not super sensitive but
|
Sure. alex at simonov dot me |
Have you found any working solution? |
I haven't heard anything back from Alex yet so my solution was to disallow .xlsx files. There's a suggestion here weshatheleopard/rubyXL#60 that it might be fixed as of RubyZip 1.0 What version of RubyZip is being included in your project Vlad? |
I use 1.1.0 but my problem comes from a .xls file |
I checked file from @jgwconsulting and it's opening fine. @vladCovaliov did you tried master branch? |
I will try using the master branch. But actually, I'm not sure if my issue it's related to rubyzip. I am using 'roo' for parsing an xls, but my xls is not an archive. Though I'm not sure why I see this error. |
That is pretty odd. Might be worth giving RubyXL a try to see if that works? https://github.com/weshatheleopard/rubyXL |
The file @axelson provided was an XLS (binary) file, which is not a zip-file, so that bug was invalid. |
@jgwconsulting Note that password-protected XLSX files are not actually zip files |
Hello gentlemen, Can anybody look into it please? I use the following ruby and gem versions:
UPDATE: I've found the root of the problem - it turned out that wrong data is passed to |
@duhast I have the same issue, how did you fixed uploading file to make it work? |
@szymon-przybyl as I remember, I've supplied uploaded file in the wrong way so it's contents was evaluatead as a string |
getting this exception when trying to process some of the docx files |
@weshatheleopard It's .xlsx file and I am still getting error on windows and mac. You can see for yourself. here is the link. https://www.dropbox.com/s/5tnb7h2mm9h47ef/long%2Breport-4-11-01-2016.zip?dl=0 |
Well, in 2019 I faced this bug, and for those who faced it too, here is how I fix this: A error explanation (skip if you just want to fix it): The solution: I have a gist exemplifying the snippet mentioned above. |
Throwing 'Zip end of central directory signature not found (Zip::ZipError)'
See these two issues from separate gems that use RubyZip:
roo-rb/roo#80
weshatheleopard/rubyXL#60
The text was updated successfully, but these errors were encountered: