From 6bd515d02b5d2c8bb81cf59a61962c6a8fbb84ef Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Fri, 24 May 2019 08:18:35 +0200 Subject: update message-logging and remove explicit Logger implementation --- eaaf_core/pom.xml | 4 ++-- .../idp/auth/services/ProtocolAuthenticationService.java | 13 ++++++++++--- .../gv/egiz/eaaf/core/impl/utils/TransactionIDUtils.java | 14 +++----------- .../egiz/eaaf/core/impl/logging/DummyStatusMessager.java | 4 +++- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/eaaf_core/pom.xml b/eaaf_core/pom.xml index 477f56b1..0f6b3082 100644 --- a/eaaf_core/pom.xml +++ b/eaaf_core/pom.xml @@ -40,10 +40,10 @@ org.slf4j slf4j-api - + commons-codec commons-codec 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 8e641338..6f416414 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 @@ -25,7 +25,6 @@ package at.gv.egiz.eaaf.core.impl.idp.auth.services; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; -import java.util.Arrays; import javax.naming.ConfigurationException; import javax.servlet.http.HttpServletRequest; @@ -388,8 +387,16 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer String[] errorCodeParams = null; if (params == null) errorCodeParams = new String[] {}; - else - errorCodeParams = Arrays.copyOf(params, params.length, String[].class); + else { + errorCodeParams = new String[params.length]; + for (int i=0; i