You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Sicker (Jira)" <ji...@apache.org> on 2022/03/21 19:50:00 UTC
[jira] [Resolved] (COMPRESS-603) Expander does not support archives with archive entries beginning with ./
[ https://issues.apache.org/jira/browse/COMPRESS-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Sicker resolved COMPRESS-603.
----------------------------------
Fix Version/s: 1.22
Resolution: Fixed
> 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
> Fix For: 1.22
>
> 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)