View Issue Details

IDProjectCategoryView StatusLast Update
0004013Talertaler-merchant-demospublic2024-01-12 13:08
ReporterMarcello Stanisci Assigned ToMarcello Stanisci 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
PriorityhighSeveritytweakReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.0 
Target Version0.0Fixed in Version0.0 
Summary0004013: Code modifications
DescriptionTwo are the main points for this issue:

1) As of now, the merchant backend is a unique function called 'url_handler'
which serves all the requests, and defines *a lot* of variables on the stack.
The modification should define a dedicated handler for each "/x" made available
 by the merchant, in order to make 'url_handler' more light. (ADDED)

2) The merchant should monitor the reference count of each 'json_t *'
type used
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0004021 closedMarcello Stanisci Backend modifications to match new API 
related to 0004012 closedMarcello Stanisci Verify deposit confirmation signature 
related to 0004011 closedMarcello Stanisci Get mint's "/keys" 
related to 0004016 closedMarcello Stanisci Change implementation 

Activities

Marcello Stanisci

2015-10-20 12:55

reporter   ~0009757

Last edited: 2015-10-27 09:09

3) correcting compilation 'warnings' (FIXED)

Marcello Stanisci

2015-10-20 13:12

reporter   ~0009758

Last edited: 2015-10-23 15:56

4) convert various 'printf's in 'GNUNET_log's
- See https://gnunet.org/logging for instructions on how to enable and configure this facility

update: configure ignores

 --enable-logging
 --enable-logging=verbose

Marcello Stanisci

2015-10-23 13:01

reporter   ~0009780

Last edited: 2015-10-23 13:03

'related to' as in 'fix before' (the issues it got related to).

Marcello Stanisci

2015-10-23 19:02

reporter   ~0009785

Last edited: 2015-11-03 16:49

5) Define struct(s) to group recurrent data "aggregates" in the code.

This modification makes functions taking n+j argument, take just
j+1, by substituting n arguments belonging to the same aggregate with
some 'struct' which groupes them.

For example, define a 'struct' which represents a contract in DB.

NOTE: the refactored merchant doesn't use anything from the "old" library,
so this hint doesn't apply. (ADDED)

Marcello Stanisci

2015-10-30 06:42

reporter   ~0009861

point 1) ADDED

Marcello Stanisci

2015-11-17 13:52

reporter   ~0009915

***BUG UPDATE:***

the points still applying are:

1) count 'json_t *' references
2) get GNUNET_ERROR_TYPE_INFO printed

Christian Grothoff

2015-11-17 14:27

manager   ~0009918

Run
$ export GNUNET_FORCE_LOG=";;;;INFO"
before running command, and you'll see those.

Christian Grothoff

2015-11-17 14:28

manager   ~0009919

GNUNET_log_setup() sets the "minimal" log level globally, with the export you override. See https://gnunet.org/logging

Christian Grothoff

2015-11-27 20:30

manager   ~0009953

I think this is all fine now.

Issue History

Date ModifiedUsernameFieldChange
2015-10-20 12:21Marcello StanisciNew Issue
2015-10-20 12:21Marcello StanisciStatusnew => assigned
2015-10-20 12:21Marcello StanisciAssigned To => Marcello Stanisci
2015-10-20 12:55Marcello StanisciNote Added: 0009757
2015-10-20 13:12Marcello StanisciNote Added: 0009758
2015-10-22 23:12Christian GrothoffSeverityminor => tweak
2015-10-22 23:12Christian GrothoffProduct Version => 0.0
2015-10-22 23:12Christian GrothoffTarget Version => 0.0
2015-10-23 12:56Marcello StanisciRelationship addedrelated to 0004021
2015-10-23 12:57Marcello StanisciRelationship addedrelated to 0004012
2015-10-23 12:57Marcello StanisciRelationship addedrelated to 0004011
2015-10-23 13:01Marcello StanisciNote Added: 0009780
2015-10-23 13:03Marcello StanisciNote Edited: 0009780
2015-10-23 13:15Marcello StanisciRelationship addedrelated to 0004016
2015-10-23 13:16Marcello StanisciPrioritynormal => high
2015-10-23 15:19Marcello StanisciNote Edited: 0009758
2015-10-23 15:56Marcello StanisciNote Edited: 0009758
2015-10-23 19:02Marcello StanisciNote Added: 0009785
2015-10-27 09:09Marcello StanisciNote Edited: 0009757
2015-10-30 06:42Marcello StanisciNote Added: 0009861
2015-11-03 16:49Marcello StanisciNote Edited: 0009785
2015-11-03 16:49Marcello StanisciNote Edited: 0009785
2015-11-03 16:53Marcello StanisciDescription Updated
2015-11-17 13:52Marcello StanisciNote Added: 0009915
2015-11-17 14:27Christian GrothoffNote Added: 0009918
2015-11-17 14:28Christian GrothoffNote Added: 0009919
2015-11-27 20:30Christian GrothoffNote Added: 0009953
2015-11-27 20:30Christian GrothoffStatusassigned => informing
2015-11-27 20:30Christian GrothoffFixed in Version => 0.0
2015-11-27 20:30Christian GrothoffResolutionopen => fixed
2015-11-28 21:28Christian GrothoffStatusinforming => closed
2015-11-29 12:48Christian GrothoffCategorymerchant (demonstrator) => merchant frontend (demonstrator)
2016-02-17 02:24Florian DoldCategorymerchant frontend (demonstrator) => merchant frontend (donations)
2024-01-12 13:08Christian GrothoffCategorymerchant frontend (donations) => Merchant frontends (Python3)
2026-08-23 14:16Florian DoldCategoryMerchant frontends (Python3) => taler-merchant-demos