View Issue Details

IDProjectCategoryView StatusLast Update
0009267Talermechant backendpublic2024-10-15 19:31
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionunable to reproduce 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version0.14Fixed in Version0.14 
Summary0009267: sandbox /pos endpoint returns bogus list of categories
DescriptionOutput:

curl -H "Authorization: Bearer secret-token:sandbox" https://backend.demo.taler.net/nstances/sandbox/private/pos
{
  "categories": [
    {
      "id": 0,
      "name": "default"
    }
  ],
  "products": [
    {
      "description": "Oktoberfest!",
      "description_i18n": {},
      "unit": "liters",
      "price": "KUDOS:50",
      "image": "",
      "categories": [
        11
      ],
      "taxes": [],
      "total_stock": 9223372036854775807,
      "minimum_age": 16,
      "product_serial": 45,
      "product_id": "beer"
    },
    {
      "description": "kebab",
      "description_i18n": {},
      "unit": "meal",
      "price": "KUDOS:10",
      "image": "",
      "categories": [
        12
      ],
      "taxes": [],
      "total_stock": 9223372036854775807,
      "minimum_age": 0,
      "product_serial": 47,
      "product_id": "doenner"
    },
    {
      "description": "H2O",
      "description_i18n": {},
      "unit": "liter",
      "price": "KUDOS:1",
      "image": "",
      "categories": [
        11
      ],
      "taxes": [],
      "total_stock": 9223372036854775807,
      "minimum_age": 0,
      "product_serial": 44,
      "product_id": "water"
    },
    {
      "description": "pizza 30 cm",
      "description_i18n": {},
      "unit": "slice",
      "price": "KUDOS:5",
      "image": "",
      "categories": [
        12
      ],
      "taxes": [],
      "total_stock": 9223372036854775807,
      "minimum_age": 0,
      "product_serial": 46,
      "product_id": "pizza"
    }
  ]
}
TagsNo tags attached.

Activities

Christian Grothoff

2024-10-14 09:35

manager   ~0023526

I also get this for the default instance -- references unknown category.

Christian Grothoff

2024-10-14 09:39

manager   ~0023527

That seems to be an old bug. However, with HEAD I get:

$ curl -H "Authorization: Bearer secret-token:sandbox" https://backend.head.taler.net/instances/sandbox/private/pos
{
  "categories": [
    {
      "id": 0,
      "name": "default"
    }
  ],
  "products": []
}

even though I added products!

Christian Grothoff

2024-10-15 19:31

manager   ~0023535

Seems head was reset between me adding and testing curl. Works now fine.

Issue History

Date Modified Username Field Change
2024-10-14 09:33 Christian Grothoff New Issue
2024-10-14 09:33 Christian Grothoff Status new => assigned
2024-10-14 09:33 Christian Grothoff Assigned To => Christian Grothoff
2024-10-14 09:35 Christian Grothoff Note Added: 0023526
2024-10-14 09:39 Christian Grothoff Note Added: 0023527
2024-10-15 19:31 Christian Grothoff Status assigned => resolved
2024-10-15 19:31 Christian Grothoff Resolution open => unable to reproduce
2024-10-15 19:31 Christian Grothoff Fixed in Version => 0.14
2024-10-15 19:31 Christian Grothoff Note Added: 0023535