From 50fa0fdd3ea1c875ab65c90804c2471a6bb6b2bb Mon Sep 17 00:00:00 2001 From: Bojan Suzic Date: Fri, 28 Mar 2014 17:52:45 +0100 Subject: extend error message --- .../main/java/at/gv/egovernment/moa/id/util/ParamValidatorUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'id/server/idserverlib/src/main') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ParamValidatorUtils.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ParamValidatorUtils.java index 6efe9b39c..0cb11cf5f 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ParamValidatorUtils.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ParamValidatorUtils.java @@ -233,7 +233,8 @@ public class ParamValidatorUtils implements MOAIDAuthConstants{ } else { Logger.error("Fehler Ueberpruefung Parameter bkuURI. bkuURI ist nicht auf Liste der vertrauenswuerdigen BKUs (Konfigurationselement: MOA-IDConfiguration/TrustedBKUs)"); - return false; + Logger.error("Ueberpruefte bkuURI: " + bkuURI); + return false; } } } -- cgit v1.2.3 From d87ebfc442828e191db392b2c4364842713b8448 Mon Sep 17 00:00:00 2001 From: Bojan Suzic Date: Tue, 1 Apr 2014 13:09:02 +0200 Subject: logging change --- .../java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'id/server/idserverlib/src/main') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java index 5b844580d..e8c9c2a24 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java @@ -73,7 +73,9 @@ public class STORKProtocol implements IModulInfo, MOAIDAuthConstants { try { decSamlToken = PEPSUtil.decodeSAMLToken(request.getParameter("SAMLRequest")); } catch (NullPointerException e) { - Logger.error("Unable to retrieve STORK Request", e); + Logger.error("Unable to retrieve STORK Request for host: " + request.getRemoteHost() + " and URI: " + request.getRequestURI(), e); + + throw new MOAIDException("stork.04", null); } -- cgit v1.2.3 From 25eb08da85dcc643f70a39ebbe26427f30a12958 Mon Sep 17 00:00:00 2001 From: Bojan Suzic Date: Tue, 1 Apr 2014 13:40:11 +0200 Subject: availability check log update --- .../at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'id/server/idserverlib/src/main') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java index e8c9c2a24..00f919c82 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/STORKProtocol.java @@ -73,9 +73,11 @@ public class STORKProtocol implements IModulInfo, MOAIDAuthConstants { try { decSamlToken = PEPSUtil.decodeSAMLToken(request.getParameter("SAMLRequest")); } catch (NullPointerException e) { - Logger.error("Unable to retrieve STORK Request for host: " + request.getRemoteHost() + " and URI: " + request.getRequestURI(), e); - - + if (request.getRemoteHost().contains("129.27.142")) { + Logger.warn("Availability check by " + request.getRemoteHost() + " on URI: " + request.getRequestURI()); + } else { + Logger.error("Unable to retrieve STORK Request for host: " + request.getRemoteHost() + " and URI: " + request.getRequestURI(), e); + } throw new MOAIDException("stork.04", null); } -- cgit v1.2.3