[jira] [Commented] (COMPRESS-211) handle zip extra field 0x7875 - Info Zip New Unix Extra Field

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (COMPRESS-211) handle zip extra field 0x7875 - Info Zip New Unix Extra Field

Gary D. Gregory (Jira)

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

Julius Davies commented on COMPRESS-211:

Thanks!   I'm reworking the patch based on your feedback, in particular:

- Fields will be private (that was an oversight, oops!)

- Returning long instead of BigInteger is on purpose to keep the API easier for users, since that way I can keep the users from needing to mess around with the signed-vs-unsigned ugliness.  I'm also assuming that UID/GID greater than 32bits (let alone 63bits!) does not exist on any unix machines at this time.

- Switching to JUnit4.

- Thanks for BigInteger.valueOf()!   I will switch to that!  (Had no idea it existed)


> handle zip extra field 0x7875 - Info Zip New Unix Extra Field
> -------------------------------------------------------------
>                 Key: COMPRESS-211
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-211
>             Project: Commons Compress
>          Issue Type: Improvement
>          Components: Archivers
>            Reporter: Julius Davies
>            Assignee: Julius Davies
>            Priority: Minor
>         Attachments: compress-211.patch
> From Info Zip (zip-3.0)'s source archive (proginfo/extrafld.txt):
> {code}
>          -Info-ZIP New Unix Extra Field:
>           ====================================
>           Currently stores Unix UIDs/GIDs up to 32 bits.
>           (Last Revision 20080509)
>           Value         Size        Description
>           -----         ----        -----------
>   (UnixN) 0x7875        Short       tag for this extra block type ("ux")
>           TSize         Short       total data size for this block
>           Version       1 byte      version of this extra field, currently 1
>           UIDSize       1 byte      Size of UID field
>           UID           Variable    UID for this entry
>           GIDSize       1 byte      Size of GID field
>           GID           Variable    GID for this entry
> {code}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira