mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Solid Multipart RAR4.x archive - Fails but works with 2 comments. #328
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nanook on GitHub (Oct 10, 2018).
Solid Multipart RAR4.x archive fails to decompress due to 2 if statements intentionally throwing exceptions. When these 2 checks are commented out the archive extracts without issue.
I have tried various other approaches that all failed. Either complaining that it is solid and to use ExtractAllFiles(). When Trying ExtractAllFiles it complained that it was MultiVolume.
My successful test was using the following method.
and commenting out the following code:
and in RarArchiveEntry.cs
I realise there's probably a legitimate reason for these checks. I just wanted to raise this for consideration.
Thanks for a great compression library.
@adamhathcock commented on GitHub (Nov 2, 2018):
I guess I didn't cover the scenario of multi-volume and SOLID.
Any chance you can contribute a test case in a PR then I can fill in the code?
@adamhathcock commented on GitHub (Jul 1, 2020):
Fixed by https://github.com/adamhathcock/sharpcompress/pull/523