View Issue Details

IDProjectCategoryView StatusLast Update
0010020Talerexchangepublic2025-05-26 13:38
ReporterFlorian Dold Assigned ToChristian Grothoff  
PriorityurgentSeveritymajorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Versiongit (master) 
Target Version1.0 stretch goalsFixed in Version1.0 stretch goals 
Summary0010020: kyc-decisions test causes DB error in exchange
DescriptionLooks related to the 0010003 fix.
Steps To Reproduce$ taler-harness run-integrationtests kyc-decisions
Additional Information2025-05-26T10:48:34.897725+0200 pq-1224890(GHPFTFATT4MPJ8N3ZT038E3MS0) ERROR Query `do_insert_aml_decision' failed with result: insert or update on table "wire_targets" violates foreign key constraint "wire_targets_fk_kyc_targets"/Key (h_normalized_payto)=(\x9490719bef2024d7207ac7534368b3efba63be0483806e00a0d9bd4e5502e5ed) is not present in table "kyc_targets"./ERROR: insert or update on table "wire_targets" violates foreign key constraint "wire_targets_fk_kyc_targets"
DETAIL: Key (h_normalized_payto)=(\x9490719bef2024d7207ac7534368b3efba63be0483806e00a0d9bd4e5502e5ed) is not present in table "kyc_targets".
CONTEXT: SQL statement "INSERT INTO wire_targets
    (wire_target_h_payto
    ,h_normalized_payto
    ,payto_uri
    ) VALUES (
     in_h_full_payto
    ,in_h_normalized_payto
    ,in_payto_uri
    )"
PL/pgSQL function exchange_do_insert_aml_decision(text,bytea,bytea,bigint,bigint,text,bytea,bytea,bigint,text,boolean,text,text,text,bytea,bytea,text,text[],text) line 77 at SQL statement
/PGRES_FATAL_ERROR/ERROR: insert or update on table "wire_targets" violates foreign key constraint "wire_targets_fk_kyc_targets"
DETAIL: Key (h_normalized_payto)=(\x9490719bef2024d7207ac7534368b3efba63be0483806e00a0d9bd4e5502e5ed) is not present in table "kyc_targets".
CONTEXT: SQL statement "INSERT INTO wire_targets
    (wire_target_h_payto
    ,h_normalized_payto
    ,payto_uri
    ) VALUES (
     in_h_full_payto
    ,in_h_normalized_payto
    ,in_payto_uri
    )"
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-05-26 11:04 Florian Dold New Issue
2025-05-26 11:05 Florian Dold Assigned To => Christian Grothoff
2025-05-26 11:05 Florian Dold Status new => assigned
2025-05-26 13:38 Christian Grothoff Status assigned => resolved
2025-05-26 13:38 Christian Grothoff Resolution open => fixed
2025-05-26 13:38 Christian Grothoff Fixed in Version => 1.0 stretch goals
2025-05-26 13:38 Christian Grothoff Product Version => git (master)