mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Proxy Save can leave a partial Default/Tor configuration after a write failure #1093
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#1093
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Saving Default proxy and Tor proxy settings can close the editor before all changes have been persisted. If a later write fails, only part of the requested configuration survives.
Reproduced on
qt6at6e54a48ab571, macOS / Qt 6.9, using an isolated regtest profile.To reproduce:
127.0.0.1:9151.127.0.0.1:9152.settings.json.tmp→settings.jsonrename withEACCES; earlier writes succeeded.The editor closes despite the failure. A settings error appears in the footer, but reopening shows Default proxy enabled and Tor proxy disabled. The requested Tor address survives only as
onion-prev, with no activeonionoverride.After restart,
getnetworkinforeports127.0.0.1:9151for IPv4, IPv6 and onion, rather than the requested dedicated Tor endpoint. An explicit retry saves the intended configuration correctly.commitProxyDraft()reports that the in-memory changes were accepted, andsave()immediately closes the page. Persistence happens asynchronously, so that return value does not establish that the complete configuration was saved.The editor should retain failed changes for retry and close only after persistence succeeds. If some changes have already been saved, it should make that partial result clear.
The reproduction checked persisted settings and Core’s effective proxy configuration with networking disabled.