From dd478e0b228a609e04f0b1e5971b524b782bd56c Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Mon, 5 Feb 2024 14:11:45 +0100 Subject: fix(core): use centrial error-handling service to map internal to external error-codes --- .../core/impl/idp/auth/services/ProtocolAuthenticationService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eaaf_core/src/main/java/at/gv/egiz/eaaf/core') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java index ef293f64..00768519 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java @@ -584,18 +584,18 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer // write error message writeHtmlErrorResponse(req, resp, e.getMessage(), internalErrorCode, e instanceof EaafException ? ((EaafException) e).getParams() : null, - statusMessager.mapInternalErrorToExternalError(internalErrorCode), errorData); + errorTicketService.getExternalCodeFromInternal(internalErrorCode), errorData); } else if (e instanceof EaafException) { // send HTML formated error message writeHtmlErrorResponse(req, resp, e.getMessage(), internalErrorCode, ((EaafException) e).getParams(), - statusMessager.mapInternalErrorToExternalError(internalErrorCode), errorData); + errorTicketService.getExternalCodeFromInternal(internalErrorCode), errorData); } else { // write generic message for general exceptions final String msg = statusMessager.getMessage(IStatusMessenger.CODES_INTERNAL_ERROR_GENERIC, null); writeHtmlErrorResponse(req, resp, msg, internalErrorCode, null, - statusMessager.mapInternalErrorToExternalError(internalErrorCode), errorData); + errorTicketService.getExternalCodeFromInternal(internalErrorCode), errorData); } } -- cgit v1.2.3