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 2011/07/20 15:59:00 UTC

[jira] [Commented] (COMPRESS-140) Support blank uid/gid fields

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

Stefan Bodewig commented on COMPRESS-140:
-----------------------------------------

http://www.freebsd.org/cgi/man.cgi?query=ar&sektion=5 is the best I can find and at least it says unused fields will be filled with blanks.

I'm not sure whether returning 0 in this case is a good choice but intend to address user/group ids across all ArchiveEntry classes in a way that can answer "I don't know" anyway in the context of COMPRESS-136 so an interim solution that returns 0 now may be OK, even if it leads to duplicate code.

> 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