View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008939 | Taler | mechant backend | public | 2024-06-13 17:20 | 2024-07-26 00:11 |
Reporter | sebasjm | Assigned To | sebasjm | ||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 0.12 | ||||
Target Version | 0.12 | Fixed in Version | 0.12 | ||
Summary | 0008939: can't delete wire transfer | ||||
Description | for the wire transfer i was able to create ( see [0] ) i cant delete some because i get 404 (see [1] and [2]) and 400 in others ( see [3] ) Also note that a "0" (zero) is added at the end of the id, not specified in the creation (see [4]) [0] $ curl 'http://merchant.taler.test:1180/private/transfers?limit=20' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.9,es-AR;q=0.8,es;q=0.7' -H 'Authorization: Bearer secret-token:BYM658TG3JMQ7311YYHDTTZR7NRYK645KANDQY4B1DVCW7D5V310' { "transfers": [ { "credit_amount": "YEIN:1", "wtid": "WEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEW0", "payto_uri": "payto://iban/DE5642988254582/DE5642988254582?receiver-name=Leading+Shoe", "exchange_url": "http://exchange.test.taler.net/", "transfer_serial_id": 1, "verified": false, "confirmed": true }, { "credit_amount": "YEIN:1", "wtid": "WEWEWEW1WEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEWEW0", "payto_uri": "payto://iban/DE5642988254582/DE5642988254582?receiver-name=Leading+Shoe", "exchange_url": "http://exchange.test.taler.net/", "transfer_serial_id": 4, "verified": false, "confirmed": true }, { "credit_amount": "YEIN:1", "wtid": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0", "payto_uri": "payto://iban/DE5642988254582/DE5642988254582?receiver-name=Leading+Shoe", "exchange_url": "http://exchange.taler:8081/", "transfer_serial_id": 7, "verified": false, "confirmed": true }, { "credit_amount": "YEIN:1", "wtid": "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE0", "payto_uri": "payto://iban/DE5642988254582/DE5642988254582?receiver-name=Leading+Shoe", "exchange_url": "http://exchange.test.taler.net/", "transfer_serial_id": 10, "verified": false, "confirmed": true }, { "credit_amount": "YEIN:2", "wtid": "1231231231231231231231231231231231231231231231231230", "payto_uri": "payto://iban/DE5642988254582/DE5642988254582?receiver-name=Leading+Shoe", "exchange_url": "http://exchang2.test.taler.net/", "transfer_serial_id": 22, "verified": false, "confirmed": true }, { "credit_amount": "YEIN:5", "wtid": "2222222222222222222222222222222222222222222222222220", "payto_uri": "payto://iban/DE5642988254582/DE5642988254582?receiver-name=Leading+Shoe", "exchange_url": "http://exchange.test.taler.net/", "transfer_serial_id": 25, "verified": false, "confirmed": true } ] } [1] $ curl 'http://merchant.taler.test:1180/private/transfers/1231231231231231231231231231231231231231231231231230' -X 'DELETE' -H 'Authorization: Bearer secret-token:BYM658TG3JMQ7311YYHDTTZR7NRYK645KANDQY4B1DVCW7D5V310' { "code": 2017, "hint": "The backend could not find the inbound wire transfer specified in the request.", "detail": "1231231231231231231231231231231231231231231231231231" } [2] $ curl 'http://merchant.taler.test:1180/private/transfers/2222222222222222222222222222222222222222222222222220' -X 'DELETE' -H 'Authorization: Bearer secret-token:BYM658TG3JMQ7311YYHDTTZR7NRYK645KANDQY4B1DVCW7D5V310' { "code": 2017, "hint": "The backend could not find the inbound wire transfer specified in the request.", "detail": "2222222222222222222222222222222222222222222222222220" } [3] $ curl 'http://merchant.taler.test:1180/private/transfers/EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE0' -X 'DELETE' -H 'Authorization: Bearer secret-token:BYM658TG3JMQ7311YYHDTTZR7NRYK645KANDQY4B1DVCW7D5V310' { "code": 26, "hint": "A parameter in the request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers.", "detail": "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE0" } [4] curl 'http://merchant.taler.test:1180/private/transfers' \ -H 'Authorization: Bearer secret-token:BYM658TG3JMQ7311YYHDTTZR7NRYK645KANDQY4B1DVCW7D5V310' \ --data-raw '{"wtid":"2222222222222222222222222222222222222222222222222222","credit_amount":"YEIN:5","exchange_url":"http://exchange.test.taler.net/","payto_uri":"payto://iban/DE5642988254582/DE5642988254582?receiver-name=Leading+Shoe"}' | ||||
Tags | No tags attached. | ||||
|
Eh, you have to pass H_WIRE, a hash. Your transcript doesn't look like you're passing a base32-encoded wire hash. Are you? |
|
Oh, sorry, wrong API, was thinking account deletion. But regardless, for deleting transfers, you need to specify the $TID, which is a 64-bit serial number, not the WTID. |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-06-13 17:20 | sebasjm | New Issue | |
2024-06-13 17:20 | sebasjm | Status | new => assigned |
2024-06-13 17:20 | sebasjm | Assigned To | => Christian Grothoff |
2024-06-13 19:44 | Christian Grothoff | Note Added: 0022598 | |
2024-06-13 19:46 | Christian Grothoff | Note Added: 0022599 | |
2024-06-13 19:46 | Christian Grothoff | Assigned To | Christian Grothoff => sebasjm |
2024-06-13 20:44 | sebasjm | Status | assigned => resolved |
2024-06-13 20:44 | sebasjm | Resolution | open => no change required |
2024-07-26 00:11 | Christian Grothoff | Fixed in Version | => 0.12 |
2024-07-26 00:11 | Christian Grothoff | Status | resolved => closed |