[java-plugin-shibd] branch main updated: Fix handling of null authority ID.

Scott Cantor cantor.2 at osu.edu
Mon Aug 11 18:30:04 UTC 2025


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-plugin-shibd.

View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-shibd.git;a=commit;h=01c2f524d6c3680b39821ec84adf89f09e9d2536

The following commit(s) were added to refs/heads/main by this push:
     new 01c2f52  Fix handling of null authority ID.
01c2f52 is described below

commit 01c2f524d6c3680b39821ec84adf89f09e9d2536
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Aug 11 14:29:59 2025 -0400

    Fix handling of null authority ID.
---
 .../src/main/java/net/shibboleth/sp/impl/BasicApplication.java         | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sp-server-impl/src/main/java/net/shibboleth/sp/impl/BasicApplication.java b/sp-server-impl/src/main/java/net/shibboleth/sp/impl/BasicApplication.java
index 2039d17..370164a 100644
--- a/sp-server-impl/src/main/java/net/shibboleth/sp/impl/BasicApplication.java
+++ b/sp-server-impl/src/main/java/net/shibboleth/sp/impl/BasicApplication.java
@@ -241,8 +241,7 @@ public class BasicApplication extends DefaultRelyingPartyConfigurationResolver i
     public void setAuthenticatingAuthority(@Nullable @NotEmpty final String authority) {
         checkSetterPreconditions();
         
-        final String trimmed = Constraint.isNotNull(authority, "Authority name cannot be null or empty");
-        authenticatingAuthorityLookupStrategy = FunctionSupport.constant(trimmed);
+        authenticatingAuthorityLookupStrategy = FunctionSupport.constant(StringSupport.trimOrNull(authority));
     }
     
     /**

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list