View Issue Details

IDProjectCategoryView StatusLast Update
0003624Talerexchangepublic2024-01-12 14:09
ReporterChristian Grothoff Assigned ToSree Harsha Totakura  
PrioritynormalSeveritytweakReproducibilityN/A
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version0.0Fixed in Version0.0 
Summary0003624: need a routine to check JSON format for wire deposits (SEPA specification)
DescriptionCurrently, the /deposit handler doesn't check if the JSON 'wire' element is well-formed. We need a generic routine that is extensible for future supported wire formats (i.e. accepting those enabled by the configuration), and a specific routine that checks for correct SEPA details.
TagsNo tags attached.

Activities

Sree Harsha Totakura

2015-02-17 17:35

updater   ~0008881

fix committed to git master

Christian Grothoff

2015-02-17 19:43

manager   ~0008885

I'm not sure we want to have the execution date in this at all, and AFAIK beneficiary name and BIC are technically also optional with SEPA.

Finally, the way this was implemented isn't really pluggable -- the existing code doesn't have any extension mechanism, not even a simple looking up the validator based on the transaction-type logic. Ultimately, we want something where either at compile-time or run-time I can select one or more validation functions. So while this is a good first step towards SEPA-validation, it doesn't quite 'close' the bug.

Sree Harsha Totakura

2015-02-19 16:41

updater   ~0008898

I didn't understand the requirement for this being pluggable/extensible. Why do we need a transaction-type logic for the validation function?

Also, run-time selection of this validation function is appropriate at places where it is used, i.e. in the mint; what should be changed with respect to this in the validation function?

Christian Grothoff

2015-02-20 16:39

manager   ~0008899

The Mint should eventually support non-SEPA transactions, like ACH (US). Thus, there must be a natural way to add validators for other transaction standards.

Which transaction types are supported by a given mint should be configurable by the operator.

Does that clarify?

Christian Grothoff

2015-04-12 22:49

manager   ~0009080

5e8f95c..68774b2 makes it easier (but not yet fully pluggable, which may be overkill) to add additional validators.

Christian Grothoff

2015-04-12 22:53

manager   ~0009081

Added configuration option for wireformat in 68774b2..15bec8f.

Sree Harsha Totakura

2021-09-02 18:14

updater   ~0018341

Fix committed to master branch.

Related Changesets

exchange: master bea425de

2015-02-17 18:23

Sree Harsha Totakura


Details Diff
Fix 0003624: Check JSON format for wire deposits (SEPA specification) Affected Issues
0003624
mod - src/include/taler_json_lib.h Diff File
mod - src/util/Makefile.am Diff File
mod - src/util/json.c Diff File
add - src/util/test_json_validations.c Diff File

Issue History

Date Modified Username Field Change
2015-01-28 14:42 Christian Grothoff New Issue
2015-01-28 16:32 Sree Harsha Totakura Assigned To => Sree Harsha Totakura
2015-01-28 16:32 Sree Harsha Totakura Status new => assigned
2015-02-17 17:35 Sree Harsha Totakura Note Added: 0008881
2015-02-17 17:35 Sree Harsha Totakura Status assigned => closed
2015-02-17 17:35 Sree Harsha Totakura Resolution open => fixed
2015-02-17 19:43 Christian Grothoff Note Added: 0008885
2015-02-17 19:43 Christian Grothoff Status closed => feedback
2015-02-17 19:43 Christian Grothoff Resolution fixed => reopened
2015-02-19 16:41 Sree Harsha Totakura Note Added: 0008898
2015-02-20 16:39 Christian Grothoff Note Added: 0008899
2015-02-20 16:39 Christian Grothoff Status feedback => assigned
2015-03-24 17:27 Christian Grothoff Severity block => tweak
2015-03-28 14:48 Christian Grothoff Target Version => 0.0
2015-04-11 16:39 Christian Grothoff Assigned To Sree Harsha Totakura => Christian Grothoff
2015-04-12 22:49 Christian Grothoff Note Added: 0009080
2015-04-12 22:53 Christian Grothoff Note Added: 0009081
2015-04-12 22:53 Christian Grothoff Status assigned => resolved
2015-04-12 22:53 Christian Grothoff Fixed in Version => 0.0
2015-04-12 22:53 Christian Grothoff Resolution reopened => fixed
2015-04-12 23:43 Christian Grothoff Status resolved => closed
2015-11-29 13:54 Christian Grothoff Category util => libtalerutil
2021-09-02 18:14 Sree Harsha Totakura Changeset attached => Taler-exchange master bea425de
2021-09-02 18:14 Sree Harsha Totakura Note Added: 0018341
2021-09-02 18:14 Sree Harsha Totakura Assigned To Christian Grothoff => Sree Harsha Totakura
2024-01-12 14:09 Christian Grothoff Category libtalerutil => exchange