View Issue Details

IDProjectCategoryView StatusLast Update
0004793Talerexchangepublic2016-11-20 02:26
ReporterChristian Grothoff 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
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version0.2Fixed in Version0.2 
Summary0004793: /refresh/reveal lacks idempotency check
Descriptionif /refresh/reveal is run a second time, and the first time did succeed in putting data into the database, the 2nd insert fails, causing this:

Nov 17 10:48:24-540357 taler-exchange-httpd-28254 DEBUG Executing prepared SQL statement `insert_refresh_out'
Nov 17 10:48:24-540670 taler-exchange-httpd-28254 ERROR Assertion failed at plugin_exchangedb_postgres.c:3427.
Nov 17 10:48:24-540710 taler-exchange-httpd-28254 ERROR Database failure: ERROR: duplicate key value violates unique constraint "refresh_out_session_hash_newcoin_index_key"
DETAIL: Key (session_hash, newcoin_index)=(\x9d642b4056191abc7fca40da50793e4272b740aeb5e8b907478d76e1565d19bcdcfd591a3f4d52024565a94a4582a6009cbe730f57635dba3e358560fd1ee4c9, 0) already exists.
 (PGRES_FATAL_ERROR)
Nov 17 10:48:24-540726 taler-exchange-httpd-28254 ERROR Assertion failed at taler-exchange-httpd_db.c:1262.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2016-11-17 15:38

manager   ~0011517

Fixed in e140ca9..7fd6be5

Issue History

Date ModifiedUsernameFieldChange
2016-11-17 10:50Christian GrothoffNew Issue
2016-11-17 10:50Christian GrothoffStatusnew => assigned
2016-11-17 10:50Christian GrothoffAssigned To => Christian Grothoff
2016-11-17 10:52Christian GrothoffPrioritynormal => urgent
2016-11-17 15:38Christian GrothoffStatusassigned => informing
2016-11-17 15:38Christian GrothoffResolutionopen => fixed
2016-11-17 15:38Christian GrothoffFixed in Version => 0.2
2016-11-17 15:38Christian GrothoffNote Added: 0011517
2016-11-20 02:26Christian GrothoffStatusinforming => closed