View Issue Details

IDProjectCategoryView StatusLast Update
0009631Talermerchant backendpublic2025-05-10 02:11
Reporterfefe 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 Version1.0Fixed in Version1.0 
Summary0009631: enum type mismatch in parse_abort
DescriptionIn taler-merchant-httpd_post-orders-ID-abort.c:

   896 return TALER_MHD_reply_with_error (connection,

This is nitpicking, but TALER_MHD_reply_with_error returns an MHD_Result, but parse_abort returns a GNUNET_GenericReturnValue. MHD_Result defines 0 and 1, which are defined with the same meaning in GNUNET_GenericReturnValue.

The cast is also technically OK because you can cast enum to int and vice versa.
I would still recommend making it an explicit cast.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2025-03-19 00:46

manager   ~0024235

Was actually worse than this, because MHD_YES (1) needs to be mapped to GNUNET_NO (0) for error returned and MHD_NO (0) to GNUNET_SYSERR (-1) for failed to return error. Fixed in db5b27048897329157cbec8fdf3ee2482cfca161

Christian Grothoff

2025-03-19 00:47

manager   ~0024236

Fix committed to master branch.

Issue History

Date ModifiedUsernameFieldChange
2025-03-18 12:37fefeNew Issue
2025-03-18 12:37fefeStatusnew => assigned
2025-03-18 12:37fefeAssigned To => Christian Grothoff
2025-03-19 00:46Christian GrothoffNote Added: 0024235
2025-03-19 00:46Christian GrothoffStatusassigned => informing
2025-03-19 00:46Christian GrothoffResolutionopen => fixed
2025-03-19 00:46Christian GrothoffFixed in Version => 1.0
2025-03-19 00:46Christian GrothoffProduct Version => git (master)
2025-03-19 00:46Christian GrothoffTarget Version => 1.0
2025-03-19 00:47Christian Grothoff
2025-03-19 00:47Christian GrothoffNote Added: 0024236
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend
2025-05-10 02:11Christian GrothoffStatusinforming => closed