[java-shib-profile] branch main updated: Fix log message.
Codeberg
noreply at shibboleth.net
Tue Sep 15 16:47:35 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-shib-profile.
View the commit online:
https://codeberg.org/Shibboleth/java-shib-profile/commit/1bbbfc517fcd37ea4bdeb494e198285826fae774
The following commit(s) were added to refs/heads/main by this push:
new 1bbbfc5 Fix log message.
1bbbfc5 is described below
commit 1bbbfc517fcd37ea4bdeb494e198285826fae774
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Sep 15 12:47:26 2026 -0400
Fix log message.
---
.../src/main/java/net/shibboleth/profile/module/AbstractModule.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/shib-profile-api/src/main/java/net/shibboleth/profile/module/AbstractModule.java b/shib-profile-api/src/main/java/net/shibboleth/profile/module/AbstractModule.java
index 0160430..e7685a4 100644
--- a/shib-profile-api/src/main/java/net/shibboleth/profile/module/AbstractModule.java
+++ b/shib-profile-api/src/main/java/net/shibboleth/profile/module/AbstractModule.java
@@ -41,6 +41,7 @@ import org.apache.commons.lang3.SystemUtils;
import org.apache.hc.client5.http.classic.methods.HttpGet;
import org.apache.hc.client5.http.protocol.HttpClientContext;
import org.apache.hc.core5.http.ClassicHttpResponse;
+import org.apache.hc.core5.http.HttpStatus;
import org.opensaml.security.httpclient.HttpClientSecuritySupport;
import org.slf4j.Logger;
import org.springframework.core.io.ClassPathResource;
@@ -161,7 +162,7 @@ public abstract class AbstractModule implements Module {
throws ModuleException {
if (moduleContext.getInstallLocation().startsWith(ResourceUtils.CLASSPATH_URL_PREFIX)) {
- throw new ModuleException("IdP location is a classpath");
+ throw new ModuleException("Install location is a classpath");
}
if (isHttpClientRequired() && moduleContext.getHttpClient() == null) {
@@ -448,7 +449,7 @@ public abstract class AbstractModule implements Module {
final String scheme = request.getScheme();
assert scheme != null;
HttpClientSecuritySupport.checkTLSCredentialEvaluated(clientContext, scheme);
- if (response.getCode() != 200) {
+ if (response.getCode() != HttpStatus.SC_OK) {
throw new IOException("HTTP request was unsuccessful");
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list