[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: helper
From: |
gnunet |
Subject: |
[libeufin] branch master updated: helper |
Date: |
Thu, 08 Dec 2022 11:11:14 +0100 |
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 ff608aa0 helper
ff608aa0 is described below
commit ff608aa052b12380acc771479dbedc2f6d512923
Author: MS <ms@taler.net>
AuthorDate: Thu Dec 8 11:11:00 2022 +0100
helper
---
.../main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 9 ++-------
util/src/main/kotlin/Ebics.kt | 5 +++++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index c1d0670a..071d4b97 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -895,13 +895,8 @@ private suspend fun ApplicationCall.handleEbicsIni(header:
EbicsUnsecuredRequest
val ebicsSubscriber =
findEbicsSubscriber(header.static.partnerID, header.static.userID,
header.static.systemID)
if (ebicsSubscriber == null) {
- logger.warn(
- "ebics subscriber, userID: ${header.static.userID}" +
- ", partnerID: ${header.static.partnerID}" +
- ", systemID: ${header.static.systemID}," +
- "not found"
- )
- throw EbicsUserUnknown(header.static.userID)
+ logger.warn("ebics subscriber,
${dumpEbicsSubscriber(header.static)}, not found")
+ throw EbicsUserUnknown(dumpEbicsSubscriber(header.static))
}
when (ebicsSubscriber.state) {
SubscriberState.NEW -> {}
diff --git a/util/src/main/kotlin/Ebics.kt b/util/src/main/kotlin/Ebics.kt
index 8b9070f0..405c2fcb 100644
--- a/util/src/main/kotlin/Ebics.kt
+++ b/util/src/main/kotlin/Ebics.kt
@@ -630,4 +630,9 @@ fun makeEbicsHpbRequest(subscriberDetails:
EbicsClientSubscriberDetails): String
val doc = XMLUtil.convertJaxbToDocument(hpbRequest)
XMLUtil.signEbicsDocument(doc, subscriberDetails.customerAuthPriv)
return XMLUtil.convertDomToString(doc)
+}
+
+fun dumpEbicsSubscriber(ebicsHeader: EbicsUnsecuredRequest.StaticHeaderType):
String {
+ return "userID: ${ebicsHeader.userID}, partnerID:
${ebicsHeader.partnerID}, systemID: ${ebicsHeader.systemID}"
+
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: helper,
gnunet <=