Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression when extracting tar archive to a path containig a symlink #864

Merged
merged 3 commits into from Dec 17, 2019
Merged

Fix regression when extracting tar archive to a path containig a symlink #864

merged 3 commits into from Dec 17, 2019

Conversation

arminha
Copy link
Contributor

@arminha arminha commented Dec 5, 2019

This was originally fixed in pull request #816, but got lost when pull request #843 got merged.

This pull request fixes the issue again and adds unit tests to test the relevant code in the DefaultArchiveExtractor.

* test extraction of malicious tar files
* test extraction of a tar file into path with a symlink
  (this is a test for the fix in commit 6175368)
…acting to a path containig a symlink

This fixes a regression that was originaly fixed in commit 6175368 but reintroduced in commit 5a5eb07.
…eated

Files.createSymbolicLink can also fail with an IOException when the user doesn't have the rights to create a symlink. For example on Windows 10 as normal user withouth admin rights.
@martin-g
Copy link

+1 for the fix and a release this year! Thanks :-)

@eirslett
Copy link
Owner

Ok, let's do this!

@eirslett eirslett merged commit 381357d into eirslett:master Dec 17, 2019
@eirslett
Copy link
Owner

There we go, 1.9.0 is released, merry christmas! 🎅 ❄️ 🎄

@martin-g
Copy link

Merry Christmas! 🤶
Thank you! 🍡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants