[java-plugin-shibd] branch main updated: Add some debug logging to DefaultAgentResolver
Codeberg
noreply at shibboleth.net
Fri Jan 23 16:37:20 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/7ca4b7b59d7e16c6f9e1eff530617a34e2eea39b
The following commit(s) were added to refs/heads/main by this push:
new 7ca4b7b Add some debug logging to DefaultAgentResolver
7ca4b7b is described below
commit 7ca4b7b59d7e16c6f9e1eff530617a34e2eea39b
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Jan 23 16:36:02 2026 +0000
Add some debug logging to DefaultAgentResolver
---
.../main/java/net/shibboleth/sp/impl/DefaultAgentResolver.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/sp-server-impl/src/main/java/net/shibboleth/sp/impl/DefaultAgentResolver.java b/sp-server-impl/src/main/java/net/shibboleth/sp/impl/DefaultAgentResolver.java
index 1a86878..121b51a 100644
--- a/sp-server-impl/src/main/java/net/shibboleth/sp/impl/DefaultAgentResolver.java
+++ b/sp-server-impl/src/main/java/net/shibboleth/sp/impl/DefaultAgentResolver.java
@@ -21,11 +21,13 @@ import java.util.Map;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
+import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import net.shibboleth.shared.annotation.constraint.NonnullAfterInit;
import net.shibboleth.shared.collection.CollectionSupport;
import net.shibboleth.shared.component.ComponentInitializationException;
+import net.shibboleth.shared.primitive.LoggerFactory;
import net.shibboleth.shared.resolver.CriteriaSet;
import net.shibboleth.shared.resolver.ResolverException;
import net.shibboleth.shared.spring.config.IdentifiedComponentManager;
@@ -41,6 +43,9 @@ public class DefaultAgentResolver extends IdentifiedComponentManager<Agent> impl
/** Agent set. */
@NonnullAfterInit private Map<String,Agent> agentMap;
+ /** Class logger. */
+ @Nonnull private final Logger log = LoggerFactory.getLogger(DefaultAgentResolver.class);
+
/**
* Constructor.
*
@@ -57,6 +62,8 @@ public class DefaultAgentResolver extends IdentifiedComponentManager<Agent> impl
agentMap = new HashMap<>();
+ log.debug("Initializing with Agents: {}", getComponents());
+
// Install agent mappings against all the usernames (falling back to the agent ID).
for (final Agent agent : getComponents()) {
agentMap.put(agent.getId(), agent);
@@ -72,10 +79,11 @@ public class DefaultAgentResolver extends IdentifiedComponentManager<Agent> impl
if (criteria != null) {
final AgentCriterion c_agent = criteria.get(AgentCriterion.class);
if (c_agent != null) {
+ log.trace("Looking up agent {}", c_agent.getId());
return agentMap.get(c_agent.getId());
}
}
-
+
return null;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list