View Issue Details

IDProjectCategoryView StatusLast Update
0009631Talermerchant backendpublic2025-03-19 01:47
Reporterfefe Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
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.

Activities

Christian Grothoff

2025-03-19 01: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 01:47

manager   ~0024236

Fix committed to master branch.

Related Changesets

merchant: master db5b2704

2025-03-19 02:45

Christian Grothoff


Details Diff
fix 0009631 Affected Issues
0009631
mod - src/backend/taler-merchant-httpd_post-orders-ID-abort.c Diff File

Issue History

Date Modified Username Field Change
2025-03-18 13:37 fefe New Issue
2025-03-18 13:37 fefe Status new => assigned
2025-03-18 13:37 fefe Assigned To => Christian Grothoff
2025-03-19 01:46 Christian Grothoff Note Added: 0024235
2025-03-19 01:46 Christian Grothoff Status assigned => resolved
2025-03-19 01:46 Christian Grothoff Resolution open => fixed
2025-03-19 01:46 Christian Grothoff Fixed in Version => 1.0
2025-03-19 01:46 Christian Grothoff Product Version => git (master)
2025-03-19 01:46 Christian Grothoff Target Version => 1.0
2025-03-19 01:47 Christian Grothoff Changeset attached => merchant master db5b2704
2025-03-19 01:47 Christian Grothoff Note Added: 0024236
2025-03-22 14:09 Christian Grothoff Category mechant backend => merchant backend