Send: an old Paste confirmation can overwrite a newer payment request #1067

Open
opened 2026-11-05 13:05:43 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-05 13:05:43 +00:00 (Migrated from github.com)

On qt6 at 6e54a48ab571, accepting a new payment request through the native File menu leaves an earlier Confirm paste? popup active. Its Paste action can then overwrite the newly accepted request.

Reproduction

On macOS, using distinct valid regtest addresses:

  1. In Send, enter an address and 0.1 BTC.
  2. Copy bitcoin:<address-A>?amount=0.2&label=older-paste and paste it into the address field. Leave Confirm paste? open.
  3. Choose File → Open URI… and accept bitcoin:<address-B>?amount=0.3&label=newer-import.
  4. The Send form now contains B, 0.3 BTC and newer-import, but the earlier Paste confirmation remains open.
  5. Click Paste. The form changes to A, 0.2 BTC and older-paste.

This happens within the same wallet. The subsequent transaction review correctly shows A and 0.2 BTC, and nothing is broadcast automatically. The defect is that a confirmation for an earlier draft remains actionable after another request replaces it.

Cause

The pending clipboard request and its confirmation survive acceptance of the newer request. Clicking Paste applies the stored older request to the current Send form.

Expected behavior

Accepting another payment request should clear the pending paste and close its confirmation. A stale confirmation must not overwrite the replacement draft.

Simply opening and cancelling the URI dialog should preserve the original pending paste.

Related #1048 is closed and covers the fixed Use all available funds? warning. This report concerns the separate Confirm paste? action, which still reproduces.

On `qt6` at `6e54a48ab571`, accepting a new payment request through the native File menu leaves an earlier **Confirm paste?** popup active. Its Paste action can then overwrite the newly accepted request. **Reproduction** On macOS, using distinct valid regtest addresses: 1. In Send, enter an address and **0.1 BTC**. 2. Copy `bitcoin:<address-A>?amount=0.2&label=older-paste` and paste it into the address field. Leave **Confirm paste?** open. 3. Choose **File → Open URI…** and accept `bitcoin:<address-B>?amount=0.3&label=newer-import`. 4. The Send form now contains B, **0.3 BTC** and `newer-import`, but the earlier Paste confirmation remains open. 5. Click **Paste**. The form changes to A, **0.2 BTC** and `older-paste`. This happens within the same wallet. The subsequent transaction review correctly shows A and 0.2 BTC, and nothing is broadcast automatically. The defect is that a confirmation for an earlier draft remains actionable after another request replaces it. **Cause** The pending clipboard request and its confirmation survive acceptance of the newer request. Clicking Paste applies the stored older request to the current Send form. **Expected behavior** Accepting another payment request should clear the pending paste and close its confirmation. A stale confirmation must not overwrite the replacement draft. Simply opening and cancelling the URI dialog should preserve the original pending paste. Related [#1048](https://github.com/bitcoin-core/gui-qml/issues/1048) is closed and covers the fixed **Use all available funds?** warning. This report concerns the separate **Confirm paste?** action, which still reproduces.
Sign in to join this conversation.
No description provided.