[java-identity-provider] branch master updated: OSJ-193: Provide a mechanism to detect ResolverExceptions in ...
Brent Putman
putmanb at georgetown.edu
Wed Mar 4 23:16:00 EST 2020
This is an automated email from the git hooks/post-receive script.
putmanb pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=41d00e928785d318a96d9a061ceba2452c3e2890
The following commit(s) were added to refs/heads/master by this push:
new 41d00e9 OSJ-193: Provide a mechanism to detect ResolverExceptions in ...
41d00e9 is described below
commit 41d00e928785d318a96d9a061ceba2452c3e2890
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Wed Mar 4 23:14:49 2020 -0500
OSJ-193: Provide a mechanism to detect ResolverExceptions in ...
Provide a mechanism to detect ResolverExceptions in
AbstractReloadingMetadataResolver.
Add changes to status.jsp, missed in previous commit.
---
idp-war/src/main/webapp/WEB-INF/jsp/status.jsp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp b/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
index a28a1d5..cc75e0c 100644
--- a/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
+++ b/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
@@ -69,6 +69,7 @@ for (final ReloadableService service : (Collection<ReloadableService>) request.g
final Gauge<Map<String,Instant>> updates = (Gauge<Map<String,Instant>>) metrics.getMetrics().get("net.shibboleth.idp.metadata.update");
final Gauge<Map<String,Instant>> successes = (Gauge<Map<String,Instant>>) metrics.getMetrics().get("net.shibboleth.idp.metadata.successfulRefresh");
final Gauge<Map<String,Instant>> rootValids = (Gauge<Map<String,Instant>>) metrics.getMetrics().get("net.shibboleth.idp.metadata.rootValidUntil");
+ final Gauge<Map<String,String>> errors = (Gauge<Map<String,String>>) metrics.getMetrics().get("net.shibboleth.idp.metadata.error");
Set<Entry<String, Instant>> entrySet = refreshes.getValue().entrySet();
if (entrySet.isEmpty()) {
@@ -82,6 +83,7 @@ for (final ReloadableService service : (Collection<ReloadableService>) request.g
final Instant lastUpdate = updates == null ? null : updates.getValue().get(resolverId);
final Instant lastSuccessfulRefresh = successes == null ? null : successes.getValue().get(resolverId);
final Instant rootValidUntil = rootValids == null ? null : rootValids.getValue().get(resolverId);
+ final String lastError = errors == null ? null : errors.getValue().get(resolverId);
out.println("\tmetadata source: " + resolverId);
if (lastRefresh != null) {
@@ -93,6 +95,9 @@ for (final ReloadableService service : (Collection<ReloadableService>) request.g
if (lastUpdate != null) {
out.println("\tlast update: " + dateTimeFormatter.format(lastUpdate));
}
+ if (lastError != null) {
+ out.println("\tlast error: " + lastError);
+ }
if (rootValidUntil != null) {
out.println("\troot validUntil: " + dateTimeFormatter.format(rootValidUntil));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list