View Issue Details

IDProjectCategoryView StatusLast Update
0004793Talerexchangepublic2016-11-20 03:26
ReporterChristian Grothoff Assigned ToChristian Grothoff  
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.

Activities

Christian Grothoff

2016-11-17 16:38

manager   ~0011517

Fixed in e140ca9..7fd6be5

Issue History

Date Modified Username Field Change
2016-11-17 11:50 Christian Grothoff New Issue
2016-11-17 11:50 Christian Grothoff Status new => assigned
2016-11-17 11:50 Christian Grothoff Assigned To => Christian Grothoff
2016-11-17 11:52 Christian Grothoff Priority normal => urgent
2016-11-17 16:38 Christian Grothoff Status assigned => resolved
2016-11-17 16:38 Christian Grothoff Resolution open => fixed
2016-11-17 16:38 Christian Grothoff Fixed in Version => 0.2
2016-11-17 16:38 Christian Grothoff Note Added: 0011517
2016-11-20 03:26 Christian Grothoff Status resolved => closed