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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Gary D. Gregory (Jira)
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.

Reply | Threaded
Open this post in threaded view
|

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

Gary D. Gregory (Jira)

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