commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Izen (JIRA)" <>
Subject [jira] Commented: (COMPRESS-91) jar recognition is curently impossible.
Date Mon, 23 Aug 2010 21:29:18 GMT


Leo Izen commented on COMPRESS-91:

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:
>             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.

View raw message