View Issue Details

IDProjectCategoryView StatusLast Update
0010247Talerwallet (WebExtension)public2025-08-25 14:33
ReporterChristian Grothoff Assigned Tosebasjm  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version1.1 
Summary0010247: wallet handles 409 badly if exchange account is not found by the bank
DescriptionInstead of showing an error, the Webextension basically loops back to the "accept ToS" state.

POST /taler-integration/withdrawal-operation/a6cf30d4-2041-4b7d-b30e-5845b810a52f HTTP/1.1
Host: localhost:8082
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0
Accept: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br, zstd
Content-Type: application/json
Content-Length: 141
Origin: moz-extension://3cb0ead1-7874-4c1f-9eb5-98b7a5cfa34c
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Priority: u=4

{"reserve_pub":"QCSSRMT9ESWAMC13KC2982YS68VRCHS8PT80H0QYCQ3SMX2B4T7G","selected_exchange":"payto://x-taler-bank/localhost/2?receiver-name=2"}HTTP/1.1 409 Conflict
Vary: Origin
Access-Control-Allow-Origin: moz-extension://3cb0ead1-7874-4c1f-9eb5-98b7a5cfa34c
Access-Control-Allow-Credentials: true
Content-Length: 89
Content-Type: application/json
Connection: keep-alive

{"code":5106,"hint":"Account payto://x-taler-bank/localhost/2?receiver-name=2 not found"}G
Steps To ReproduceRun
$ taler-unified-setup.sh -c test_merchant_api-rsa.conf -beEgmwztM -u exchange-account-exchange

Then login as 'admin' into the bank, (secret-password), create a 'test' user. Log in as that test user, and try to withdraw EUR to your WebEx wallet.

The 'receiver-name' is not quite configured right in exchange.git fbebb8f5804df9429c73025cb7273dc095fb80a1, causing the account to not be found.
We get a 409 conflict response, which the wallet is not handling well.
Tagswallet-api

Activities

Florian Dold

2025-08-25 01:36

manager   ~0025686

@Christian: I can't reproduce using your instructions, the command just launches a fakebank, no libeufin-bank that allows me to withdraw easily.

However, I've checked and this is a UI issue, as wallet-core transitions to a failed(bank-aborted) state on 409.

Thus I've implemented a new dev experiment: taler://dev-experiment/pretend-post-wop-failed

@Sebastian: Please do a bank-integrated withdrawal with that dev experiment activated and check that the UI properly handles the state transition.

sebasjm

2025-08-25 14:32

developer   ~0025692

the dev experiment works but it doesn't add any error message, so right now i can only see a message from the wallet but I can't test how it looks with the error produced by the bank.

sebasjm

2025-08-25 14:33

developer   ~0025693

026b03cad..137c5e387

Issue History

Date Modified Username Field Change
2025-08-09 15:41 Christian Grothoff New Issue
2025-08-09 15:41 Christian Grothoff Status new => assigned
2025-08-09 15:41 Christian Grothoff Assigned To => Florian Dold
2025-08-09 15:45 Christian Grothoff Steps to Reproduce Updated
2025-08-25 01:36 Florian Dold Note Added: 0025686
2025-08-25 01:36 Florian Dold Assigned To Florian Dold => sebasjm
2025-08-25 14:15 sebasjm Tag Attached: wallet-api
2025-08-25 14:32 sebasjm Note Added: 0025692
2025-08-25 14:33 sebasjm Status assigned => resolved
2025-08-25 14:33 sebasjm Resolution open => fixed
2025-08-25 14:33 sebasjm Note Added: 0025693