You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Peter Lee (Jira)" <ji...@apache.org> on 2020/04/14 02:59:00 UTC
[jira] [Commented] (COMPRESS-509) The ambiguous behavior of the
TarArchiveEntry.getName() method
[ https://issues.apache.org/jira/browse/COMPRESS-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082805#comment-17082805 ]
Peter Lee commented on COMPRESS-509:
------------------------------------
Seems we have add a '/' for a directory name if it's not ended with a '/' - but we didn't do it for the gnu long name entry.
I will try to figure this out and dig it a little deeper before fixing it in case I didn't make any mistake.
Will update this issue later.
> The ambiguous behavior of the TarArchiveEntry.getName() method
> --------------------------------------------------------------
>
> Key: COMPRESS-509
> URL: https://issues.apache.org/jira/browse/COMPRESS-509
> Project: Commons Compress
> Issue Type: Bug
> Components: Archivers
> Affects Versions: 1.18, 1.20
> Reporter: Petr Vasak
> Priority: Minor
> Attachments: Main.java
>
>
> Scenario: To tar an empty directory and then to untar it. When the name is longer than 100 characters, no ending slash appears.
> Example: see attachment
> Part of the output:
> ..
> dir/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/
> dir/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/
> dir/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> dir/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> ..
--
This message was sent by Atlassian Jira
(v8.3.4#803005)