commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trejkaz (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COMPRESS-140) Support blank uid/gid fields
Date Wed, 20 Jul 2011 04:50:57 GMT

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

Trejkaz updated COMPRESS-140:
-----------------------------

    Attachment: COMPRESS-140.patch

Attaching one possible patch.  The only thing that irks me about this patch is that we now
have 4 asInt() methods.

> Support blank uid/gid fields 
> -----------------------------
>
>                 Key: COMPRESS-140
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-140
>             Project: Commons Compress
>          Issue Type: Improvement
>          Components: Archivers
>    Affects Versions: 1.1
>            Reporter: Trejkaz
>              Labels: patch
>         Attachments: COMPRESS-140.patch, jpl.lib.bz2
>
>
> I have found an ar file (it happens to be a .lib file) which has 6 ASCII spaces for both
the UID and GID fields.
> This goes through {{ArArchiveInputStream.asInt}} which throws a NumberFormatException.
> I'm not sure what the correct behaviour is, but the 'ar' utility I have on hand shows
0/0 for uid/gid for the same file.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message