diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-12-14 12:33:01 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-12-14 12:33:01 +0100 |
commit | 04cec6a9aa085bba0736cc6d55cb6c8b4d54a0a0 (patch) | |
tree | 182c0ff232b9beae041651f60a24737694405028 /eaaf_core/src/main/java/at/gv/egiz/eaaf | |
parent | 6cebc7aa1aecb1bc8f87443887a90fe851893954 (diff) | |
download | EAAF-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/at/gv/egiz/eaaf')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java | 7 |
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 "); |