View Issue Details

IDProjectCategoryView StatusLast Update
0009267Talermerchant backendpublic2024-12-13 18:15
ReporterChristian Grothoff Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PriorityhighSeverityblockReproducibilityalways
Status closedResolutionunable 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.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2024-10-14 07:35

manager   ~0023526

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

Christian Grothoff

2024-10-14 07: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 17:31

manager   ~0023535

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

Issue History

Date ModifiedUsernameFieldChange
2024-10-14 07:33Christian GrothoffNew Issue
2024-10-14 07:33Christian GrothoffStatusnew => assigned
2024-10-14 07:33Christian GrothoffAssigned To => Christian Grothoff
2024-10-14 07:35Christian GrothoffNote Added: 0023526
2024-10-14 07:39Christian GrothoffNote Added: 0023527
2024-10-15 17:31Christian GrothoffStatusassigned => informing
2024-10-15 17:31Christian GrothoffResolutionopen => unable to reproduce
2024-10-15 17:31Christian GrothoffFixed in Version => 0.14
2024-10-15 17:31Christian GrothoffNote Added: 0023535
2024-12-13 18:15Christian GrothoffStatusinforming => closed
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend