View Issue Details

IDProjectCategoryView StatusLast Update
0007846Talerspecificationpublic2023-09-23 15:09
Reportersebasjm Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.9.3Fixed in Version0.9.3 
Summary0007846: after creating a reserve for tipping, the list of account is empty
Descriptioncreation was OK and it returned with account

curl 'https://merchant-backend.taler.ar/instances/default/private/reserves' \
  -H 'Authorization: Bearer secret-token:<something here>' \
  --data-raw '{"initial_balance":"ARS:2","exchange_url":"https://exchange.taler.ar/","wire_method":"iban"}' \

{
  "reserve_pub": "N1DJB6VSDX4M3NR8BVP1BF836EX86VE97HSJ8J4XTB8JM1H3SYAG",
  "accounts": [
    {
      "payto_uri": "payto://iban/SANDBOXX/DE295170?receiver-name=exchange-feb",
      "master_sig": "W7RX1SQE4GC6ATHBF08XEJNWZP2VG7J04AGN263YDPZHSG75AKTK20J4A0FZ6JNCVY6RK8P3CF51WEC63KBREC4QHYJ1S4B723G560G",
      "credit_restrictions": [],
      "debit_restrictions": []
    } ]
}

But then getting the details didn't return accounts


curl 'https://merchant-backend.taler.ar/instances/default/private/reserves/N1DJB6VSDX4M3NR8BVP1BF836EX86VE97HSJ8J4XTB8JM1H3SYAG?tips=yes' \
  -H 'Authorization: Bearer secret-token:<the same secret here unless it was changed>' \

{
  "creation_time": {
    "t_s": 1684775123
  },
  "expiration_time": {
    "t_s": 1716311123
  },
  "merchant_initial_amount": "ARS:2",
  "exchange_initial_amount": "ARS:0",
  "pickup_amount": "ARS:0",
  "committed_amount": "ARS:0",
  "active": true,
  "exchange_url": "https://exchange.taler.ar/",
  "accounts": []
}
TagsNo tags attached.

Activities

Christian Grothoff

2023-05-27 19:48

manager   ~0020204

In "insert_reserve_key", we somehow stored the "reserve_pub" twice in the table, and once instead of "master_pub"...

Christian Grothoff

2023-05-27 19:53

manager   ~0020205

db344e1..16a14fc fixes the issue and expands the test suite.

Issue History

Date Modified Username Field Change
2023-05-22 19:07 sebasjm New Issue
2023-05-22 19:07 sebasjm Status new => assigned
2023-05-22 19:07 sebasjm Assigned To => Christian Grothoff
2023-05-27 19:48 Christian Grothoff Note Added: 0020204
2023-05-27 19:53 Christian Grothoff Note Added: 0020205
2023-05-27 19:53 Christian Grothoff Status assigned => resolved
2023-05-27 19:53 Christian Grothoff Resolution open => fixed
2023-05-27 19:53 Christian Grothoff Fixed in Version => 0.9.3
2023-09-23 15:09 Christian Grothoff Status resolved => closed
2024-01-12 14:02 Christian Grothoff Category merchant backend API (HTTP specification) => specification