gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: /admin/add-incoming: normalizing debit


From: gnunet
Subject: [libeufin] branch master updated: /admin/add-incoming: normalizing debit_account
Date: Mon, 02 Oct 2023 16:06:50 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new eadc614c /admin/add-incoming: normalizing debit_account
eadc614c is described below

commit eadc614c409e916889f85625fe985ba511c238f7
Author: MS <ms@taler.net>
AuthorDate: Mon Oct 2 16:06:39 2023 +0200

    /admin/add-incoming: normalizing debit_account
---
 bank/src/main/kotlin/tech/libeufin/bank/WireGatewayApiHandlers.kt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bank/src/main/kotlin/tech/libeufin/bank/WireGatewayApiHandlers.kt 
b/bank/src/main/kotlin/tech/libeufin/bank/WireGatewayApiHandlers.kt
index 71aa2039..d9e9b1d4 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/WireGatewayApiHandlers.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/WireGatewayApiHandlers.kt
@@ -159,7 +159,8 @@ fun Routing.talerWireGatewayHandlers(db: Database, ctx: 
BankApplicationContext)
                 "Reserve pub. already used",
                 TalerErrorCode.TALER_EC_BANK_DUPLICATE_RESERVE_PUB_SUBJECT
             )
-        val walletAccount = 
db.bankAccountGetFromInternalPayto(req.debit_account)
+        val strippedIbanPayto: String = stripIbanPayto(req.debit_account) ?: 
throw badRequest("Invalid debit_account payto URI")
+        val walletAccount = 
db.bankAccountGetFromInternalPayto(strippedIbanPayto)
             ?: throw notFound(
                 "debit_account not found",
                 TalerErrorCode.TALER_EC_BANK_UNKNOWN_ACCOUNT

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]