commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <>
Subject [jira] [Commented] (COMPRESS-348) Calling on empty SevenZArchiveEntry throws IllegalStateException
Date Sun, 24 Apr 2016 11:25:12 GMT


Stefan Bodewig commented on COMPRESS-348:

You are correct, I see what you describe. At least for my simplistic archive the situation
is fixed with git comit d050157 - it would be good if you could confirm this with your own

> Calling on empty SevenZArchiveEntry throws IllegalStateException
> ----------------------------------------------------------------------------------
>                 Key: COMPRESS-348
>                 URL:
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.11
>            Reporter: Robin Jansohn
>            Priority: Minor
> I'm pretty sure COMPRESS-340 breaks reading empty archive entries. When calling getNextEntry()
and that entry has no content, the code jumps into the first block at line 830 (SevenZFile.class),
clearing the deferredBlockStreams. When calling afterwards an IllegalStateException
("No current 7z entry (call getNextEntry() first).") is thrown. IMHO, there should be another
check for entry.getSize() == 0.
> This worked correctly up until 1.10.

This message was sent by Atlassian JIRA

View raw message