Repository navigation
fix(archives): clarify invalid and damaged archive errors - #638
Merged
Merged
Conversation
Translate recognized decoder failures while preserving password retries, filesystem errors, unsafe-path protection, and cancellation behavior. Refs lgse#434
Avoid scanning the full accessibility tree while GTK recycles moving rows. Preserve the pointer interactions, selection assertions, and timeout.
kallupx
marked this pull request as ready for review
September 8, 2026 20:42
Contributor
|
Merged current main and resolved archive-decoder/test conflicts while preserving extraction size checks and friendly invalid-archive errors. Fixed the marquee E2E test to read live viewport bounds, retained main’s decoder coverage and MIT metadata, and removed redundant comments. Final diff/comment audit completed. The isolated GUI E2E suite exercised invalid ZIP/7z/TAR/gzip error dialogs and successful extraction afterward. No additional manual GUI session or new media was captured; review fixes do not change the intended visual design. Existing PR screenshots remain the visual evidence. |
This was referenced Sep 9, 2026
Closed
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
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.
Description
Extracting a text file renamed to
.zip, malformed TAR/gzip input, or a truncated archive can show raw decoder diagnostics such as “Could not find EOCD”. Translate recognized malformed headers, truncated streams, and checksum failures to: “This file is not a valid archive or is damaged.”The existing operation error dialog and password flow are retained. Input-read translation leaves destination writes, unsafe-path checks, cancellation, compression, and extraction policy unchanged. Unknown errors retain their diagnostics.
The marquee-scrolling E2E scenario now reads live collection rows directly. Its previous full-window scans could take several seconds, leaving only recycled, offscreen rows to inspect and causing false timeouts in all three views. The drag, selection assertions, and timeout are unchanged.
Visual evidence
Before: raw decoder diagnostics. After: “This file is not a valid archive or is damaged.”
fake.zipfake.7zinvalid.tarinvalid.tar.gztruncated.ziptruncated.tartruncated.tar.gzFull evidence and reproduction details, including fixture checksums, accessibility trees, and capture environment records. Composited context menus: before · after.
Both phases use the same fixtures, GTK 4.22.4, azure-glow theme, scale 1, and 1200×760 window on a private Xvfb display with xcompmgr. These are unedited application-window captures with popup transparency correctly composited.
How to test
fake.zip,fake.7z,invalid.tar, andinvalid.tar.gz. Also make copies of small valid archives and truncate their headers. Use Extract here on each, and close the error dialog.Expected result: Recognized invalid or damaged archives show the clear message in the existing dialog, and progress stops. A subsequent valid extraction works. Password, filesystem, safety, unsupported-format, and cancellation failures remain distinct.
Related issue
Closes #434