-
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
Unzipping with OS X's Archive Utility raises bomCopierFileCopyError #269
Comments
I've seen this problem too, and specifically with Mac Archive Utility. From what I could tell, from my minimal debugging, the issue arises when changing a zip file that already exists. We had to workaround the problem by creating a new archive and copying stuff in. It's far from ideal, but so far it works fine: https://github.com/BioVeL/seek/blob/master/lib/taverna_player_callbacks.rb#L21 |
I'm getting the same issue but I'm not modifying the zip itself, just extracting data out of it.
|
Whatever is producing the Zip files may be missing the data descriptor signature. It's supposed to be optional, but Archive Utility fails with error 2 if it is missing (or incorrect). See https://codingantihero.wordpress.com/2020/10/29/mac-os-x-zip-issue/ for more. |
I suppose that what is happening in these cases might be that the original archive has a data descriptor, then if rubyzip is used to edit the archive in some way, as it knows nothing of the data descriptor then it might be incorrect after the edits and cause these issues. That would explain the problem I had above which I solved by re-writing the archive from scratch. I guess it's time that rubyzip learned about data descriptors... |
There is an issue with |
I'm doing some issue gardening 🌱🌿 🌷 and came upon this issue. Since it's quite old I just wanted to ask if this is still relevant? If it isn't, maybe we can close this issue? By closing some old issues we reduce the list of open issues to a more manageable set. |
I think this can be closed as we've got a record of needing to handle data descriptors in #460. |
We receive zips from our clients, which we then check to make sure only specific extensions are allowed. We also remove any hidden files and move entries when they're not in the correct place.
The client can afterwards also download his own zip (for example a colleague of him/her wants it as well).
The problem we're having is that when the zip gets extracted with OS X's Archive Utility (the default being used by Finder), it raises "Error 2 - No such file or directory". In Console.app we see "Archive Utility: bomCopierFileCopyError, error 2". We have no issues with any other extracting software.
Trying to 'fix' it wih the zip-program on cli gives us:
The code that's changing the uploaded zip:
The text was updated successfully, but these errors were encountered: