summaryrefslogtreecommitdiff
path: root/eaaf_core/src/main/java
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-12-14 12:33:01 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-12-14 12:33:01 +0100
commit04cec6a9aa085bba0736cc6d55cb6c8b4d54a0a0 (patch)
tree182c0ff232b9beae041651f60a24737694405028 /eaaf_core/src/main/java
parent6cebc7aa1aecb1bc8f87443887a90fe851893954 (diff)
downloadEAAF-Components-04cec6a9aa085bba0736cc6d55cb6c8b4d54a0a0.tar.gz
EAAF-Components-04cec6a9aa085bba0736cc6d55cb6c8b4d54a0a0.tar.bz2
EAAF-Components-04cec6a9aa085bba0736cc6d55cb6c8b4d54a0a0.zip
set TransactionId as MDC property in case of a found but invalid pendingRequest
Diffstat (limited to 'eaaf_core/src/main/java')
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java7
1 files changed, 7 insertions, 0 deletions
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 ");