summaryrefslogtreecommitdiff
path: root/nexus
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-09-04 08:20:01 +0000
committerMS <ms@taler.net>2021-09-04 08:20:01 +0000
commita4deaed26011edcc5bc4ea79a02817d8d6a5b986 (patch)
tree54b0811ea3986d1122bbf778d48bf834d18a1f4e /nexus
parentd61fa04108b0a278b42877b6d9cf70f3d70f8cf3 (diff)
downloadlibeufin-a4deaed26011edcc5bc4ea79a02817d8d6a5b986.tar.gz
libeufin-a4deaed26011edcc5bc4ea79a02817d8d6a5b986.tar.bz2
libeufin-a4deaed26011edcc5bc4ea79a02817d8d6a5b986.zip
FIXME
Diffstat (limited to 'nexus')
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt9
1 files changed, 8 insertions, 1 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
index cdc2af98..bfbfb376 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt
@@ -807,6 +807,13 @@ class EbicsBankConnectionProtocol: BankConnectionProtocol {
}
if (subscriber.ebicsIniState == EbicsInitState.UNKNOWN || subscriber.ebicsHiaState == EbicsInitState.UNKNOWN) {
if (tentativeHpb(client, connId)) {
+ /**
+ * NOTE/FIXME: in case the HIA/INI did succeed (state is UNKNOWN but Sandbox
+ * has somehow the keys), here the state should be set to SENT, because later -
+ * when the Sandbox will respond to the INI/HIA requests - we'll get a
+ * EBICS_INVALID_USER_OR_USER_STATE. Hence, the state will never switch to
+ * SENT again.
+ */
return
}
}
@@ -827,7 +834,7 @@ class EbicsBankConnectionProtocol: BankConnectionProtocol {
val hpbData = try {
doEbicsHpbRequest(client, subscriber)
} catch (e: EbicsProtocolError) {
- logger.warn("failed hpb request", e)
+ logger.warn("failed HPB request", e)
null
}
transaction {