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/11/13 09:46: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=17231330#comment-17231330 ] 

Peter Lee commented on COMPRESS-509:
------------------------------------

_> I'm fine with always adding a / at the end for directories. We should probably record the change before closing this issue._

 

Darn. I forgot to record this and I missed this issue. Thanks for the suggestion.

> 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
>            Assignee: Peter Lee
>            Priority: Minor
>             Fix For: 1.21
>
>         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)