Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

[Bug] Error archiving internal symlink in Zip #13

Open
ojizero opened this issue Jul 19, 2018 · 0 comments
Open

[Bug] Error archiving internal symlink in Zip #13

ojizero opened this issue Jul 19, 2018 · 0 comments

Comments

@ojizero
Copy link

ojizero commented Jul 19, 2018

If you have a Zipped file with internal symlinks, for example

./
├ A (~> ./B)
├ B
└ ...

Where A is a symlink to the file B, when decompressing the files, and attempting to restore the original permissions, if A is processed (extracted) before B, then it will throw an ENOENT error

================================================================================
Error executing action `unpack` on resource 'poise_archive[/tmp/file-name.zip]'
================================================================================
 
Errno::ENOENT
-------------
No such file or directory @ chmod_internal - /path/to/be/unzipped/to/A

This can potentially be remedied by running the File#chmod method after extracting all file instead of after each file, as it's implemented now.

Not sure if this issue also affects other archive providers, since we only experienced this with Zip archives.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant