commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COMPRESS-267) ArchiveStreamFactory throws "No Archiver found for the stream signature" on 7z files
Date Sat, 22 Feb 2014 18:35:19 GMT

    [ https://issues.apache.org/jira/browse/COMPRESS-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13909464#comment-13909464
] 

Stefan Bodewig commented on COMPRESS-267:
-----------------------------------------

I'm not sure I follow you here.

You'd catch the NoStreamingSupportException and then use SevenZFile because you know it is
a 7z archive?  If so you'd be writing special case code for 7z anyway in which case I think
it would be cleaner to add a static matches method to SevenZFile and make Tika check that
method in a case where ArchiveStreamFactory doesn't recognize the format.

> ArchiveStreamFactory throws "No Archiver found for the stream signature" on 7z files
> ------------------------------------------------------------------------------------
>
>                 Key: COMPRESS-267
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-267
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.7
>            Reporter: Nick Burch
>
> Apache Tika makes use of ArchiveStreamFactory to handle a wide range of archive formats
(Zip, AR, CPIO, Tar etc)
> We've just upgraded to Commons Compress 1.7, and tried to make use of the new 7z support
to add in 7z handling too. However, when you try to call:
>             ArchiveStreamFactory factory = new ArchiveStreamFactory();
>             ArchiveInputStream ais = factory.createArchiveInputStream(stream);
> With a 7z file it fails with:
>     new ArchiveException("No Archiver found for the stream signature");



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message