From 04cec6a9aa085bba0736cc6d55cb6c8b4d54a0a0 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 14 Dec 2020 12:33:01 +0100 Subject: set TransactionId as MDC property in case of a found but invalid pendingRequest --- .../java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'eaaf_core') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java index 86c50be0..72d229a1 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java @@ -74,6 +74,13 @@ public class RequestStorage implements IRequestStorage { log.debug("Searching for expired pendingRequest with Id: {} ... ", e.getInvalidInternalPendingReqId()); invalidPendingRequest = transactionStorage.get(e.getInvalidInternalPendingReqId(), IRequest.class); + + // If pendingReq. was found, set transactionID and sessionID to Logger + if (invalidPendingRequest != null) { + TransactionIdUtils.setAllLoggingVariables(invalidPendingRequest); + + } + log.debug("{} expired pendingReq. Set it into Exception ...", invalidPendingRequest != null ? "Find" : "Find NO "); -- cgit v1.2.3 From db3d586b9937e8a556c499faa485a2d9e4a03f81 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 23 Dec 2020 15:47:38 +0100 Subject: add new module that include common-code for SpringBoot applications --- .../main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'eaaf_core') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java index 72d229a1..db13bf71 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java @@ -76,10 +76,7 @@ public class RequestStorage implements IRequestStorage { transactionStorage.get(e.getInvalidInternalPendingReqId(), IRequest.class); // If pendingReq. was found, set transactionID and sessionID to Logger - if (invalidPendingRequest != null) { - TransactionIdUtils.setAllLoggingVariables(invalidPendingRequest); - - } + TransactionIdUtils.setAllLoggingVariables(invalidPendingRequest); log.debug("{} expired pendingReq. Set it into Exception ...", invalidPendingRequest != null ? "Find" : "Find NO "); -- cgit v1.2.3