[
https://issues.apache.org/jira/browse/COMPRESS-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488621#comment-17488621
]
Peter Lee edited comment on COMPRESS-603 at 2/8/22, 6:53 AM:
-------------------------------------------------------------
I created foo.tar with GNU tar, and the expander works well.
I will try to reproduce this issue with BSD tar.
Update:
I'm using bsdtar 3.2.2 to create a tar like this:
{code:java}
bsdtar -cf foo.tar ./test.txt {code}
Still can not reproduce this issue.
was (Author: peterlee):
I created foo.tar with GNU tar, and the expander works well.
I will try to reproduce this issue with BSD tar.
> Expander does not support archives with archive entries beginning with ./
> -------------------------------------------------------------------------
>
> Key: COMPRESS-603
> URL: https://issues.apache.org/jira/browse/COMPRESS-603
> Project: Commons Compress
> Issue Type: Bug
> Components: Archivers
> Affects Versions: 1.21
> Reporter: Matt Sicker
> Priority: Major
> Attachments: test.tar.gz
>
>
> Suppose I create a tar file from a directory like so:
>
> {code:java}
> tar -cf foo.tar ./foo{code}
> When I try to extract the tar entries using the Expander class, that throws a
> java.io.IOException: Expanding ./ would create file outside of ...
> When I create the tar file without the leading ./, then Expander doesn't
> complain.
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)