-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix: Fixed issue where 7z archive files could not be previewed or compressed #17426
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
Merged
yaira2
merged 5 commits into
files-community:main
from
NicholasChin28:unable-to-compress-7z
Aug 10, 2025
Merged
Fix: Fixed issue where 7z archive files could not be previewed or compressed #17426
yaira2
merged 5 commits into
files-community:main
from
NicholasChin28:unable-to-compress-7z
Aug 10, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Remove "cu" custom parameter Fixes files-community#17257
The CU code needed for zips for #17026 |
Can it be made conditional? |
- Only add "cu" parameter if not 7z archive format Fixes files-community#17257
Updated the code to exclude adding the parameter if its 7z archive |
yaira2
reviewed
Aug 10, 2025
yaira2
previously approved these changes
Aug 10, 2025
Added comment to link to GitHub issue Fixes files-community#17257
Updated comment with description of GitHub issue Fixes files-community#17257
yaira2
reviewed
Aug 10, 2025
yaira2
previously approved these changes
Aug 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolved / Related Issues
Steps used to test these changes
cu
was throwing an exception from the file with the error ofSystem.ArgumentException: Value does not fall within the expected range
Create xxx.7z
under theCompress
option in the context menu and then extract the created7z
archive.Fix Description
7z
archive does not contain the parametercu
.cu
archive, the bug reported by the original poster is fixed..chm
file from my downloaded7zip
instance. The version is 7-Zip 24.09 (x64)