Skip to content

Implement multipart rar handling for ExtractAllEntries#916

Merged
adamhathcock merged 5 commits intoadamhathcock:masterfrom
Morilli:rar-multipart-reader
May 14, 2025
Merged

Implement multipart rar handling for ExtractAllEntries#916
adamhathcock merged 5 commits intoadamhathcock:masterfrom
Morilli:rar-multipart-reader

Conversation

@Morilli
Copy link
Contributor

@Morilli Morilli commented May 14, 2025

One side-effect of the changes here is that skipping over encrypted entries for which the password is not known in a multipart rar file using the reader interface no longer works.

However reading those entries does not work because it isn't currently implemented, and the skipping was bad as well because it would fail to skip all file parts and returned after skipping the first part only, so I think it is fair to remove this functionality.
It could be implemented properly but I think it would take some effort to extract the needed information and perhaps need additional interface methods.

Morilli added 5 commits May 14, 2025 10:27
This test tested that skipping over entries using the reader interface for an encrypted multi-volume rar archive worked.
However reading those entries doesn't work and the skipping was also not working properly so I believe it's fine to "break" this functionality.
@adamhathcock
Copy link
Owner

Thanks. I think it's far that you can't skip passworded entries. SOLID archives are supposed to be a continuous stream which needs to be decrypted.

@adamhathcock adamhathcock merged commit 744e410 into adamhathcock:master May 14, 2025
2 checks passed
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.

ExtractAllEntries doesn't follow the same logic as Entries for detecting multi part rar files

2 participants

Comments