From a760feffb1bd8ba49e482546f273ef16307d44d7 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 24 May 2023 12:11:17 +0200 Subject: chore(matching): optimize error handling for matching by ID Austria --- .../auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java index 644c1543..726e5a07 100644 --- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java +++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java @@ -216,6 +216,10 @@ public class ReceiveMobilePhoneSignatureResponseTask extends AbstractAuthServlet } + } catch (WorkflowException e) { + log.warn("Matching by ID Austria has an work-flow error: {}", e.getMessage()); + throw new TaskExecutionException(pendingReq, e.getMessage(), e); + } catch (final AuthnResponseValidationException e) { log.info(ERROR_GENERIC, e.getMessage()); throw new TaskExecutionException(pendingReq, ERROR_MSG_03, e); @@ -236,7 +240,6 @@ public class ReceiveMobilePhoneSignatureResponseTask extends AbstractAuthServlet new AuthnResponseValidationException(ERROR_PVP_10, new Object[]{MODULE_NAME_FOR_LOGGING}, e)); } catch (final Exception e) { - // todo catch ManualFixNecessaryException in any other way? log.info("PVP response validation FAILED. Msg: {}",e.getMessage(), e); throw new TaskExecutionException(pendingReq, ERROR_MSG_03, new AuthnResponseValidationException(ERROR_PVP_12, new Object[]{MODULE_NAME_FOR_LOGGING, e.getMessage()}, e)); -- cgit v1.2.3