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 2010/03/12 16:09:27 UTC

[jira] Created: (COMPRESS-100) ZipArchiveInputStream should throw an exception if a data descriptor is used for STORED entries

ZipArchiveInputStream should throw an exception if a data descriptor is used for STORED entries
-----------------------------------------------------------------------------------------------

                 Key: COMPRESS-100
                 URL: https://issues.apache.org/jira/browse/COMPRESS-100
             Project: Commons Compress
          Issue Type: Bug
    Affects Versions: 1.0
            Reporter: Stefan Bodewig
            Assignee: Stefan Bodewig
             Fix For: 1.1


There is no reliable way to determine the end of data when the method is STORE and in fact the current code relies on the method to be DEFLATE in that case.

I propose to make this figure into the canReadEntryData method and to throw an exception if any attempt is made
to read the data.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (COMPRESS-100) ZipArchiveInputStream should throw an exception if a data descriptor is used for STORED entries

Posted by "Stefan Bodewig (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COMPRESS-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig resolved COMPRESS-100.
-------------------------------------

    Resolution: Fixed

svn revision 922309

> ZipArchiveInputStream should throw an exception if a data descriptor is used for STORED entries
> -----------------------------------------------------------------------------------------------
>
>                 Key: COMPRESS-100
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-100
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Stefan Bodewig
>            Assignee: Stefan Bodewig
>             Fix For: 1.1
>
>
> There is no reliable way to determine the end of data when the method is STORE and in fact the current code relies on the method to be DEFLATE in that case.
> I propose to make this figure into the canReadEntryData method and to throw an exception if any attempt is made
> to read the data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.