View Issue Details

IDProjectCategoryView StatusLast Update
0007612Talermerchant backendpublic2024-01-12 13:04
Reportersebasjm 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
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Versiongit (master) 
Target Version0.9.2Fixed in Version0.9.2 
Summary0007612: if amount and summary is given, payload to use the template should be optional
DescriptionLet say I have a template with id 'beer' with amount and summary

This works
curl -X POST https://merchant-backend.taler.ar/instances/default/templates/beer -d '{}'

But this not
curl -X POST https://merchant-backend.taler.ar/instances/default/templates/beer

Server log
WARNING Failed to parse JSON request body of 0 byte at offset 0: '[' or '{' expected near end of file
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2023-02-19 09:41

manager   ~0019877

I disagree, getting POSTs without bodies to work in the exchange would be excessively messy, and sending "{}" is hardly an issue for the client. The API spec also doesn't say that the body is optional.

Issue History

Date ModifiedUsernameFieldChange
2023-01-27 13:30sebasjmNew Issue
2023-01-27 13:30sebasjmStatusnew => assigned
2023-01-27 13:30sebasjmAssigned To => Priscilla Huang
2023-02-03 09:50Christian GrothoffTarget Versiongit (master) => 0.9.2
2023-02-17 16:55Florian DoldTarget Version0.9.2 => 0.9.3
2023-02-19 09:41Christian GrothoffNote Added: 0019877
2023-02-19 09:41Christian GrothoffAssigned ToPriscilla Huang => Christian Grothoff
2023-02-19 09:41Christian GrothoffStatusassigned => closed
2023-02-19 09:41Christian GrothoffResolutionopen => won't fix
2023-02-19 09:41Christian GrothoffFixed in Version => 0.9.2
2023-02-19 09:41Christian GrothoffTarget Version0.9.3 => 0.9.2
2024-01-12 13:04Christian GrothoffCategorymerchant backend API (C) => mechant backend
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend