View Issue Details

IDProjectCategoryView StatusLast Update
0004102Talermechant backendpublic2016-09-26 14:01
ReporterFlorian Dold Assigned ToMarcello Stanisci  
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.

Activities

Marcello Stanisci

2015-12-24 17: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 Modified Username Field Change
2015-12-23 22:10 Florian Dold New Issue
2015-12-23 22:10 Florian Dold Status new => assigned
2015-12-23 22:10 Florian Dold Assigned To => Marcello Stanisci
2015-12-24 17:12 Marcello Stanisci Note Added: 0010029
2015-12-24 17:12 Marcello Stanisci Status assigned => resolved
2015-12-24 17:12 Marcello Stanisci Resolution open => fixed
2015-12-25 10:48 Christian Grothoff Status resolved => closed
2016-09-26 14:00 Christian Grothoff Fixed in Version => 0.0
2016-09-26 14:01 Christian Grothoff Target Version => 0.0