Skip to content

Conversation

workbysaran
Copy link
Contributor

Resolved / Related Issues

Fixed issue where multi-part RAR files failed to extract with "File is corrupted. Data error has occurred" exception. Changed SevenZipExtractor to use file path constructor instead of stream-based approach, allowing SevenZip to automatically locate and open subsequent archive parts (.part01.rar, .part02.rar, etc.). Also improved error logging by replacing Console.WriteLine with App.Logger.LogError.

Closes #14328

Steps used to test these changes

  1. Create a multi-part RAR archive
  2. Open the Files app
  3. Navigate to the folder containing the multi-part RAR files
  4. Right-click on the first part (eg: test.part01.rar) and select "Extract > Extract here"
  5. Verify the extraction completes successfully without errors
  6. Verify all files from all parts are extracted correctly

@yaira2 yaira2 added the ready for review Pull requests that are ready for review label Oct 1, 2025
…e instead of raw file path to improve compatibility.
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Oct 3, 2025
@yaira2 yaira2 merged commit 58795f4 into files-community:main Oct 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Extracting a multipart rar5 archive fails

2 participants