View Issue Details

IDProjectCategoryView StatusLast Update
0006470Talermerchant backendpublic2024-01-12 13:04
ReporterFlorian Dold 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
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.8Fixed in Version0.8 
Summary0006470: Merchant logs "Finished handling request ... with status 0" despite HTTP 200 response
DescriptionCan be reproduced by running the API test case (test_merchant_api).
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

jonathanbuchanan

2020-08-20 05:58

reporter   ~0016669

The easiest way to get the http status codes seems to be storing it in TMH_HandlerContext and accessing it through con_cls in handle_mhd_completion_callback. As far as storing the status code in TMH_HandlerContext, I'll just write wrappers around TALER_MHD_reply_* that store the status codes.

Christian Grothoff

2020-08-22 11:59

manager   ~0016699

Yes, but the above log message is from MHD, and here 'status 0' means successful conclusion. MHD will even report this on non-200 error codes, and I think that's OK. Please don't wrap the logging. I think this is just fine, one just needs to be careful when reading the log report.

Christian Grothoff

2020-08-22 11:59

manager   ~0016700

Note: non-zero status are used here in case of timeout or network failures.

Christian Grothoff

2020-08-22 12:02

manager   ~0016701

838e8bf..0a30c30 modifies the log message to make it more clear that the 0 is an MHD termination code and NOT an HTTP status.

Christian Grothoff

2021-09-02 16:23

manager   ~0018373

Fix committed to master branch.

Issue History

Date ModifiedUsernameFieldChange
2020-08-10 11:21Florian DoldNew Issue
2020-08-10 11:21Florian DoldStatusnew => assigned
2020-08-10 11:21Florian DoldAssigned To => Marcello Stanisci
2020-08-10 12:32Florian DoldAssigned ToMarcello Stanisci => jonathanbuchanan
2020-08-20 05:58jonathanbuchananNote Added: 0016669
2020-08-22 11:59Christian GrothoffNote Added: 0016699
2020-08-22 11:59Christian GrothoffNote Added: 0016700
2020-08-22 12:02Christian GrothoffNote Added: 0016701
2020-08-22 12:02Christian GrothoffAssigned Tojonathanbuchanan => Christian Grothoff
2020-08-22 12:02Christian GrothoffStatusassigned => informing
2020-08-22 12:02Christian GrothoffResolutionopen => fixed
2020-08-22 12:02Christian GrothoffFixed in Version => 0.8
2020-08-22 12:02Christian GrothoffProduct Version => git (master)
2020-08-22 12:02Christian GrothoffTarget Version => 0.8
2021-08-24 14:23Christian GrothoffStatusinforming => closed
2021-09-02 16:22Christian Grothoff
2021-09-02 16:23Christian GrothoffNote Added: 0018373
2024-01-12 13:04Christian GrothoffCategorymerchant backend API (C) => mechant backend
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend