libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 5409cec94642af6c74f7addac0198c853ae86bbc
parent 8d4919c1043f980698cc1b2b43446594f74ddfd8
Author: MS <ms@taler.net>
Date:   Wed, 22 Jun 2022 15:56:43 +0200

less logs verbosity

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt | 2+-
Msandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 4+---
Msandbox/src/main/kotlin/tech/libeufin/sandbox/XMLEbicsConverter.kt | 2+-
Mutil/src/main/kotlin/HTTP.kt | 4++--
4 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt @@ -134,7 +134,7 @@ private suspend fun fetchEbicsC5x( when (response) { is EbicsDownloadSuccessResult -> { response.orderData.unzipWithLambda { - logger.debug("Camt entry (filename (in the Zip archive): ${it.first}): ${it.second}") + // logger.debug("Camt entry (filename (in the Zip archive): ${it.first}): ${it.second}") storeCamt(bankConnectionId, it.second, historyType) } } diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -857,8 +857,7 @@ private suspend fun ApplicationCall.handleEbicsIni(header: EbicsUnsecuredRequest val plainOrderData = InflaterInputStream(orderData.inputStream()).use { it.readAllBytes() } - println("INI order data: ${plainOrderData.toString(Charsets.UTF_8)}") - + //println("INI order data: ${plainOrderData.toString(Charsets.UTF_8)}") val keyObject = EbicsOrderUtil.decodeOrderDataXml<SignatureTypes.SignaturePubKeyOrderData>(orderData) val sigPubXml = keyObject.signaturePubKeyInfo.pubKeyValue.rsaKeyValue val sigPub = CryptoUtil.loadRsaPublicKeyFromComponents(sigPubXml.modulus, sigPubXml.exponent) @@ -921,7 +920,6 @@ private suspend fun ApplicationCall.handleEbicsHpb( } val validationResult = XMLUtil.verifyEbicsDocument(requestDocument, subscriberKeys.authenticationPublicKey) - logger.info("validationResult: $validationResult") if (!validationResult) { throw EbicsKeyManagementError("invalid signature", "90000") } diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/XMLEbicsConverter.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/XMLEbicsConverter.kt @@ -35,7 +35,7 @@ class XMLEbicsConverter : ContentConverter { * Not always a error: the content negotiation might have * only checked if this handler could convert the response. */ - logger.info("Could not use XML custom converter for this response.") + // logger.info("Could not use XML custom converter for this response.") return null } return OutputStreamContent({ diff --git a/util/src/main/kotlin/HTTP.kt b/util/src/main/kotlin/HTTP.kt @@ -146,7 +146,7 @@ fun getHTTPBasicAuthCredentials(request: ApplicationRequest): Pair<String, Strin */ fun getAuthorizationHeader(request: ApplicationRequest): String { val authorization = request.headers["Authorization"] - logger.debug("Found Authorization header: $authorization") + // logger.debug("Found Authorization header: $authorization") return authorization ?: throw UtilError( HttpStatusCode.Unauthorized, "Authorization header not found", LibeufinErrorCode.LIBEUFIN_EC_AUTHENTICATION_FAILED @@ -159,7 +159,7 @@ fun getAuthorizationHeader(request: ApplicationRequest): String { * will then be compared with the one kept into the database. */ fun extractUserAndPassword(authorizationHeader: String): Pair<String, String> { - logger.debug("Authenticating: $authorizationHeader") + // logger.debug("Authenticating: $authorizationHeader") val (username, password) = try { // FIXME/note: line below doesn't check for "Basic" presence. val split = authorizationHeader.split(" ")