mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Send hides Use payment request after importing a different invoice message #1102
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#1102
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?
After a clipboard payment request has been applied, importing another request that differs only in its message leaves Use payment request hidden for the original clipboard contents. The form no longer matches that request, but Send still treats it as already applied.
To reproduce:
0.02, labelShopand messageOrder1. Open Send and choose Use payment request. Leave that URI on the clipboard.2at the end of itsmessage=Order1value, making itmessage=Order12. This changes the dialog text while leaving the clipboard unchanged.Order12, while the clipboard still containsOrder1. Use payment request remains hidden.Changing the amount to
0.03makes the action reappear. Cancelling the resulting Paste confirmation preserves the current draft; accepting it restores the original0.02request and itsOrder1message.The clipboard suppression check in
SendCreate.qmlcompares the applied request's address, amount and label with the current form, but omits the message. It should include the message when that field was specified, so the action becomes available when the form no longer matches the clipboard request.Related to #1067, which concerns an old, still-open Paste confirmation overwriting a newer request. This case occurs after the replacement import has completed, with no confirmation left open.
The recipient and amount remain unchanged, and the current message is visible. The demonstrated defect is the missing action and incorrect request comparison; no wrong payment was observed.
Reproduced on QML
6e54a48ab571/ Coredc282ff31d1c, macOS / Qt 6.9, using the full offscreen app and isolated regtest wallets.SendCreate.qmlandsendrecipient.cppare byte-identical in current mergedeed1f426fcb6; this case was checked in source, not rerun on that revision. Native clipboard integration was not tested.