libeufin

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

commit 5bc798158d8767290ec3a0414be4e8c3c464cc2a
parent 260528a123dce3c474b14b2a7098ec04b44aeb23
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Thu, 23 Jan 2020 00:03:05 +0100

note

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -710,6 +710,11 @@ suspend fun ApplicationCall.ebicsweb() { } if (ebicsHost == null) throw EbicsInvalidRequestError() + + /** + * NOTE: production logic must check against READY state (the + * one activated after the subscriber confirms their keys via post) + */ if (subscriber == null || subscriber.state != SubscriberState.INITIALIZED) throw EbicsSubscriberStateError()