[ 
https://issues.apache.org/jira/browse/COMPRESS-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jukka Zitting resolved COMPRESS-197.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5
         Assignee: Jukka Zitting

The attached file contains a field with three trailing nul bytes, while Commons 
Compress only accepted one or two. In revision 1369655 relaxed that constraint 
to allow any number of trailing nuls or spaces.
                
> Tar file for Android backup cannot be read
> ------------------------------------------
>
>                 Key: COMPRESS-197
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-197
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.4.1
>            Reporter: Trejkaz
>            Assignee: Jukka Zitting
>              Labels: tar
>             Fix For: 1.5
>
>         Attachments: android-backup.tar
>
>
> Attached tar file was generated by some kind of backup tool on Android. 
> Normal tar utilities seem to handle it fine, but Commons Compress doesn't.
> {noformat}
> java.lang.IllegalArgumentException: Invalid byte 0 at offset 5 in 
> '01750{NUL}{NUL}{NUL}' len=8
>     at 
> org.apache.commons.compress.archivers.tar.TarUtils.parseOctal(TarUtils.java:99)
>     at 
> org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:788)
>     at 
> org.apache.commons.compress.archivers.tar.TarArchiveEntry.<init>(TarArchiveEntry.java:308)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to