You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2014/02/22 17:19:20 UTC
[jira] [Commented] (COMPRESS-267) ArchiveStreamFactory throws "No
Archiver found for the stream signature" on 7z files
[ https://issues.apache.org/jira/browse/COMPRESS-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13909423#comment-13909423 ]
Stefan Bodewig commented on COMPRESS-267:
-----------------------------------------
The reason is we don't provide any ArchiveInputStream for 7z, it can only work on Files (it needs RandomAccessFile under the covers).
In the absence of a streaming implementation I don't see any way to resolve this.
The current sketch for Compress2 would cover such a case but is still a long way to go.
> 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)