commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Indra Talip (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COMPRESS-253) BZip2CompressorInputStream reads fewer bytes from truncated file than CPython's bz2 implementation
Date Wed, 08 Jan 2014 07:08:51 GMT

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

Indra Talip commented on COMPRESS-253:
--------------------------------------

With the patch applied to commons-compress all the Jython regression tests from commit [b1304c8|https://bitbucket.org/indratalip/jython/commits/b1304c8ba094963119a54206b2cb7995502ea055]
on my fork of Jython for the bz2 module pass successfully. Thanks :) 

> BZip2CompressorInputStream reads fewer bytes from truncated file than CPython's bz2 implementation
> --------------------------------------------------------------------------------------------------
>
>                 Key: COMPRESS-253
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-253
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Compressors
>    Affects Versions: 1.4.1, 1.6, 1.7
>            Reporter: Indra Talip
>            Priority: Minor
>              Labels: bzip, patch
>         Attachments: PythonTruncatedBzip2Test.java, compress-253.patch
>
>
> Jython includes support for decompressing bz2 files using commons compress and shares
regression tests with CPython. The CPython test [test_read_truncated|https://bitbucket.org/jython/jython/src/b2890af7a5e817e30f6ca2325f6dcdb14a59f32b/lib-python/2.7/test/test_bz2.py?at=default#cl-331]
in test_bz2.py passes under CPython but fails under Jython.
> The BZip2CompressorInputStream is able to read 769 bytes from the truncated data rather
than the 770 bytes that the CPython bz2 implementation can read.



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

Mime
View raw message