View Issue Details

IDProjectCategoryView StatusLast Update
0004102Talermerchant backendpublic2016-09-26 12:01
ReporterFlorian Dold 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
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version0.0Fixed in Version0.0 
Summary0004102: re-submitting payment request gives a database error
DescriptionSubmitting the backend/pay request twice with the same data yields a database error.

Instead, then backend should check if a contract with the same hash already exists in the database, and then check if the request data matches and return the appropriate response.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Marcello Stanisci

2015-12-24 16:12

reporter   ~0010029

the merchant had transaction_id set as primary key in the 'payments'
table, so not only attempting the same payment twice caused error, but
also paying with more than one coin. A check on the transaction_id is
done as soon as /pay gets handled.

Issue History

Date ModifiedUsernameFieldChange
2015-12-23 21:10Florian DoldNew Issue
2015-12-23 21:10Florian DoldStatusnew => assigned
2015-12-23 21:10Florian DoldAssigned To => Marcello Stanisci
2015-12-24 16:12Marcello StanisciNote Added: 0010029
2015-12-24 16:12Marcello StanisciStatusassigned => informing
2015-12-24 16:12Marcello StanisciResolutionopen => fixed
2015-12-25 09:48Christian GrothoffStatusinforming => closed
2016-09-26 12:00Christian GrothoffFixed in Version => 0.0
2016-09-26 12:01Christian GrothoffTarget Version => 0.0
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend