You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Leo Izen (JIRA)" <ji...@apache.org> on 2010/08/23 23:29:19 UTC
[jira] Issue Comment Edited: (COMPRESS-91) jar recognition is
curently impossible.
[ https://issues.apache.org/jira/browse/COMPRESS-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901592#action_12901592 ]
Leo Izen edited comment on COMPRESS-91 at 8/23/10 5:28 PM:
-----------------------------------------------------------
I tried this myself. If JarArchiveInputStream is before ZipArchiveInputStream, then when you open a file that is .zip but not .jar, it will return JarArchiveInputStream. There is no way to tell the difference between a jar and a zip file without looking at the file extension.
was (Author: thebombzen):
I tried this myself. If JarArchiveInputStream is before ZipArchiveInputStream, then when you open a file that is .zip but not .jar, it will return JarArchiveInputStream. There is no way to tell the difference between a jar and a zip file without looking at file extension.
> jar recognition is curently impossible.
> ---------------------------------------
>
> Key: COMPRESS-91
> URL: https://issues.apache.org/jira/browse/COMPRESS-91
> Project: Commons Compress
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: W2K and unbuntu JRE1.4 to 1.6.
> Reporter: Torelli
> Priority: Minor
>
> In ArchiveStreamFactory.createArchiveInputStream(final InputStream in),
> JarArchiveInputStream must be before ZipArchiveInputStream
> and a positive jar identification have to be confirmed by the first file entry (META-INF/MANIFEST.MF).
> Regards.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.