[java-plugin-shibd] branch main updated: More debug logging.
Codeberg
noreply at shibboleth.net
Tue Jan 13 18:16:06 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-plugin-shibd.
View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd/commit/e6d5008465d297f960dde8b05688ebb3926de51f
The following commit(s) were added to refs/heads/main by this push:
new e6d5008 More debug logging.
e6d5008 is described below
commit e6d5008465d297f960dde8b05688ebb3926de51f
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jan 13 13:15:54 2026 -0500
More debug logging.
---
.../shibboleth/sp/profile/impl/DoSessionCacheOperation.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/DoSessionCacheOperation.java b/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/DoSessionCacheOperation.java
index ba1bbca..8fee7b3 100644
--- a/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/DoSessionCacheOperation.java
+++ b/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/DoSessionCacheOperation.java
@@ -257,7 +257,8 @@ public class DoSessionCacheOperation extends AbstractAgentAction {
do {
final String key = identifierStrategy.generateIdentifier(false);
if (storageService.create(getStorageContext(), key, value, exp)) {
- log.debug("{} Created session record ({}), expiration ({})", getLogPrefix(), key, Instant.ofEpochMilli(exp));
+ log.debug("{} Created session record ({}), expiration ({})", getLogPrefix(), key,
+ Instant.ofEpochMilli(exp));
DDF out = new DDF(null);
out.addmember(KEY).string(key);
ensureAgentRequestContext().setOutput(out);
@@ -337,7 +338,9 @@ public class DoSessionCacheOperation extends AbstractAgentAction {
ActionSupport.buildEvent(profileRequestContext, INVALID_SESSION);
return;
}
-
+
+ log.debug("{} Read and deserialized session record from storage ({})", getLogPrefix(), key);
+
final DDF output = new DDF().structure();
sessionData.name(SESSION);
output.add(sessionData);
@@ -455,7 +458,6 @@ public class DoSessionCacheOperation extends AbstractAgentAction {
return;
}
-
// Recover last access time by backdating record expiration.
lastAccess -= (st * 1000);
if (Instant.ofEpochMilli(lastAccess).plusSeconds(timeout).isBefore(now)) {
@@ -472,6 +474,8 @@ public class DoSessionCacheOperation extends AbstractAgentAction {
// Record disappeared, so send back an empty response.
log.debug("{} Session record ({}) disappeared before update?", getLogPrefix(), key);
ActionSupport.buildEvent(profileRequestContext, MISSING_SESSION);
+ } else {
+ log.debug("{} Updated session record usage timestamp", getLogPrefix(), key);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list