mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
Handle external link and open file failures #767
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!767
Loading…
Reference in a new issue
No description provided.
Delete branch "handle-url-failures"
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?
When a link or the debug log can't be opened, the app now tells the user instead of silently doing nothing. Fixes #597
External links: every link asks for confirmation before opening, including the "Show in" links in transaction details.
Debug log: problems show in a banner on the debug log page.
-debuglogfile), and says when writing it is turned off (-nodebuglogfile).Banners: banners whose message was already set when their page opened now show up instead of staying blank.
About: the Version link uses the same open-externally icon as the other links.
Cleanup: the unused legacy About page and its controls are removed.
Tests: unit, QML and functional tests cover the link dialog, the debug log banners and log settings, and the transaction links.
Known limitation: the system only reports whether something was launched to open the link, so a browser that starts and then fails still counts as success.
Link can't be opened
![
]
Debug log banners
Transaction "Show in" link
ACK
48101e2468Tested on Linux with Qt 6.10.2: 684 QML component checks and 25 debug-log model checks pass. Verified external-link confirmation, the copy fallback after a failed open, and URL scheme validation.
No introduced issues found.
🟠 Minor · Log-setting test sub-runs collide with the original GUI's RPC port
The new debug-log sub-runs overlap the original GUI, so their shared RPC port prevents node initialization, while sub-run failures collect diagnostics from the wrong process.
Location: test/functional/qml_test_debug_log.py:364 (head).
🟠 Minor · Aborted log reads disable controls without an error message
A failed seek or short read after opening the log can now disable search, filtering and Open debug.log without supplying an explanation.
Location: qml/models/debuglogmodel.cpp:665 (head).
🔵 Suggestion · The custom-log test searches outside the initially loaded tail
The marker is absent from the initial 1,000-row cache even when the viewer reads the wrong default log, so this assertion cannot detect that regression.
Location: test/functional/qml_test_debug_log.py:318 (head).
🔵 Suggestion · The scheme-rejection test checks the mock's allowlist, not production validation
Weakening UrlOpener's production validation would not affect the QML rejection test because MockUrlOpener independently implements the same checks.
Location: qml/urlopener.h:46 (head).
Review coverage was incomplete.
Reviewed:
48101e2468fb· Full review report