[
https://issues.apache.org/jira/browse/COMPRESS-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Bodewig resolved COMPRESS-140.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.2
Patch applied in svn revision 1148784, thanks!
I expect the concrete implementation of the fix to change before the release so
I'd love to have a regression test, unfortunately I can't include the AR you
attached as testcase (likely not something we should re-distribute).
Any idea how we could create a real archive with empty ids fields? The
alternative would be to mock such an archive internally but if some command
line Fu will do, I'd prefer to do that.
> 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
> Fix For: 1.2
>
> 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