View Issue Details

IDProjectCategoryView StatusLast Update
0009861Talerexchangepublic2025-05-10 04:10
ReporterFlorian Dold Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version1.0Fixed in Version1.0 
Summary0009861: exchange does not report (balance) limits in /kyc-check response
DescriptionI noticed this because subsequent balance thresholds don't work properly with the wallet, as the wallet takes those from the limits.

Upon further investigation, it seems like /kyc-check doesn't return any limits, even when they're clearly exposed.
Steps To Reproducetaler-harness run-integrationtests kyc-decisions

This test doesn't use balance thresholds, but it makes a /kyc-check request, and it seems despite a KYC decision (with exposed rules!), the limits in the response are empty.
TagsNo tags attached.

Activities

Christian Grothoff

2025-05-05 01:42

manager   ~0024769

Eh, the only POST to /decision I see sets a *DEPOSIT* and *WITHDRAW* limit, not a BALANCE limit. Note that for *wallets* we never report DEPOST/WITHDRAW limits, as they only apply for *accounts*. Sure, we might (in the future) 400 on such (bad) decisions (with rules that simply don't apply to the account type), but that's another story. Note that by POSTing the decision, you ALSO override any default BALANCE limits that might have applied. Oh, and the test *passes*.

Florian Dold

2025-05-05 12:24

manager   ~0024771

The following commit also adds a BALANCE limit in the same decision. The exchange still returns an empty limits list.

commit 2d1d55b4fab14a3f4590794eb04bfedc1b3ac32a (HEAD -> master, origin/master, origin/HEAD)
Author: Florian Dold <florian@dold.me>
Date: Mon May 5 12:23:56 2025 +0200

    harness: also add BALANCE rule in kyc-decisions test

Christian Grothoff

2025-05-05 21:01

manager   ~0024786

Fix committed to master branch.

Christian Grothoff

2025-05-05 21:02

manager   ~0024787

Fixed in 7456ab2b9..4e8373945

Related Changesets

exchange: master 4e837394

2025-05-05 23:01

Christian Grothoff


Details Diff
fix 0009861 Affected Issues
0009861
mod - src/exchange/taler-exchange-httpd_kyc-check.c Diff File
mod - src/kyclogic/kyclogic_api.c Diff File

Issue History

Date Modified Username Field Change
2025-05-04 01:14 Florian Dold New Issue
2025-05-05 01:34 Christian Grothoff Status new => confirmed
2025-05-05 01:34 Christian Grothoff Product Version => git (master)
2025-05-05 01:42 Christian Grothoff Note Added: 0024769
2025-05-05 01:42 Christian Grothoff Assigned To => Florian Dold
2025-05-05 01:42 Christian Grothoff Status confirmed => feedback
2025-05-05 12:24 Florian Dold Note Added: 0024771
2025-05-05 12:24 Florian Dold Assigned To Florian Dold => Christian Grothoff
2025-05-05 12:24 Florian Dold Status feedback => assigned
2025-05-05 21:01 Christian Grothoff Changeset attached => exchange master 4e837394
2025-05-05 21:01 Christian Grothoff Note Added: 0024786
2025-05-05 21:01 Christian Grothoff Status assigned => resolved
2025-05-05 21:01 Christian Grothoff Resolution open => fixed
2025-05-05 21:02 Christian Grothoff Note Added: 0024787
2025-05-05 21:02 Christian Grothoff Fixed in Version => 1.0
2025-05-05 21:02 Christian Grothoff Target Version 1.0 stretch goals => 1.0
2025-05-10 04:10 Christian Grothoff Status resolved => closed