commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COMPRESS-237) Long link support for TarArchiveOutputStream
Date Tue, 06 Aug 2013 23:11:47 GMT

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

Emmanuel Bourg updated COMPRESS-237:
------------------------------------

    Attachment: longlink.patch

I attached a patch to handle link names like entry names. If it looks good I'll commit it
and add some test cases.
                
> Long link support for TarArchiveOutputStream
> --------------------------------------------
>
>                 Key: COMPRESS-237
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-237
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.5
>            Reporter: Emmanuel Bourg
>         Attachments: longlink.patch
>
>
> TarArchiveOutputStream doesn't handle properly long link names, they are truncated silently
in most cases.
> * In GNU mode a @LongLink entry should be created similarly to long names but with the
'K' type ({{GNU_LONGLINK}}) instead of 'L' ({{GNU_LONGNAME}})
> * In POSIX mode a pax header with the {{linkpath}} keyword should be added. This is already
implemented for links containing a non ASCII character.
> * In the default ERROR mode no exception is thrown and the link is truncated.
> The logic for adding a pax header on non ASCII characters should probably be reworked,
as it seems possible to have pax headers mixed with GNU @LongLink entries. I'm not sure this
is desirable.

--
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

Mime
View raw message