Skip to content
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

Ringo's unzip doesn't handle symlinks #92

Closed
oberhamsi opened this issue Oct 24, 2010 · 2 comments
Closed

Ringo's unzip doesn't handle symlinks #92

oberhamsi opened this issue Oct 24, 2010 · 2 comments

Comments

@oberhamsi
Copy link
Member

i ran into this when installing a ringo package with symbolic links in it - ringo creates the symlinks as empty files.

i found out that this kind of info is stored in extra fields per ZipEntry, which - afaict - we can't access with java.util.zip. github's zip files do contain that extra info: the symbolic links are created correctly if i unzip with "UnZip 6.00 of 20 April 2009, by Debian."

apache ant's zip tools also seems to handle them http://www.jajakarta.org/ant/ant-1.6.1/docs/ja/manual/api/org/apache/tools/zip/AsiExtraField.html

i guess this issue is more of a caveat than fixable.

@hns
Copy link
Collaborator

hns commented Feb 2, 2012

For the record, there's a byte[] getExtra() method in java.util.zip.ZipEntry:

http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipEntry.html#getExtra%28%29

But the returned byte array seems to have a different format than the one specified in the apache ant documentation linked above. The first two bytes are 85 and 84 (0x5554) instead of 117 and 110 (0x756e).

@botic
Copy link
Member

botic commented Aug 11, 2020

I’m closing this issue because it has been inactive for a long time. This probably means that it is not reproducible or it has been fixed in a newer version. If it’s an enhancement and hasn’t been taken on for so long, then it seems no one has the time to implement this / there is no interest in it.

Please reopen if you still encounter this issue with the current master version or there is a need to address this issue.

@botic botic closed this as completed Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants