View Issue Details

IDProjectCategoryView StatusLast Update
0004443Talerexchangepublic2024-01-12 13:05
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
PrioritynormalSeveritytweakReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.0 
Target Version0.2Fixed in Version0.2 
Summary0004443: exchange error hints misleading
DescriptionCurrently the exchange reports

{"error": "unknown entity referenced", "parameter": "wire"}

back to the merchant (who just hands it back to the wallet verbatim) when the mint can't parse a merchant's "wire" field in the deposit request.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2016-04-24 21:51

manager   ~0010556

Are you suggesting we should generate a 400 BAD REQUEST in this case?

Florian Dold

2016-04-24 22:08

manager   ~0010559

I'm suggesting that the merchant should send a 5xx back to the wallet, whenever the exchange gives a 400 back to the merchant.

A correct merchant implementation will never receive a 400 from a correct exchange, and thus should not pass it on to the wallet.

Especially since the wallet does not need to be aware of the protocol between merchant and exchange, but the current error message leaks this. The wallet should only receive a 400 if the *wallet* made a bad request, not if the merchant is simply misconfigured.

Christian Grothoff

2016-10-20 19:36

manager   ~0011372

Actually, we now return (usually) a 424 DEPENDENCY FAILED (as it can be said that the merchant depends on the exchange). We also return a merchant-specific code (enum TALER_ErrorCode), the "exchange-http-status" and the "exchange-error-code" (another enum TALER_ErrorCode, this time the one from the exchange). This should give the wallet plenty to play with.

Please file new bugs if for specific requests the diagnostics are still insufficient.

Issue History

Date ModifiedUsernameFieldChange
2016-04-18 23:13Florian DoldNew Issue
2016-04-18 23:13Florian DoldStatusnew => assigned
2016-04-18 23:13Florian DoldAssigned To => Christian Grothoff
2016-04-24 21:51Christian GrothoffNote Added: 0010556
2016-04-24 21:52Christian GrothoffAssigned ToChristian Grothoff => Florian Dold
2016-04-24 21:52Christian GrothoffStatusassigned => feedback
2016-04-24 21:52Christian GrothoffSeverityminor => tweak
2016-04-24 21:52Christian GrothoffProduct Version => 0.0
2016-04-24 22:08Florian DoldNote Added: 0010559
2016-04-24 22:08Florian DoldStatusfeedback => assigned
2016-05-05 13:25Christian GrothoffTarget Version => 0.2
2016-10-20 11:22Christian GrothoffAssigned ToFlorian Dold => Christian Grothoff
2016-10-20 19:36Christian GrothoffNote Added: 0011372
2016-10-20 19:36Christian GrothoffStatusassigned => informing
2016-10-20 19:36Christian GrothoffFixed in Version => 0.2
2016-10-20 19:36Christian GrothoffResolutionopen => fixed
2016-11-20 02:26Christian GrothoffStatusinforming => closed
2024-01-12 13:05Christian GrothoffCategoryexchange API (C) => exchange