[java-identity-provider] branch master updated: IDP-1121 jsp needs to be adjusted because of changed resolver API
Rod Widdowson
rdw at steadingsoftware.com
Thu Apr 18 11:50:55 EDT 2019
This is an automated email from the git hooks/post-receive script.
rdw 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=3e66d2e162a87af5df53d0a50eb9006f7ea85acd
The following commit(s) were added to refs/heads/master by this push:
new 3e66d2e IDP-1121 jsp needs to be adjusted because of changed resolver API
3e66d2e is described below
commit 3e66d2e162a87af5df53d0a50eb9006f7ea85acd
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Apr 18 16:49:53 2019 +0100
IDP-1121 jsp needs to be adjusted because of changed resolver API
https://issues.shibboleth.net/jira/browse/IDP-1121
---
idp-war/src/main/webapp/WEB-INF/jsp/status.jsp | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
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 efa3b7b..910b2d4 100644
--- a/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
+++ b/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
@@ -117,14 +117,17 @@ for (final ReloadableService service : (Collection<ReloadableService>) request.g
if (null != component) {
try {
AttributeResolver resolver = component.getComponent();
- for (final DataConnector connector: resolver.getDataConnectors().values()) {
- final Instant lastFail = connector.getLastFail();
- if (null != lastFail) {
- out.println("\tDataConnector " + connector.getId() + ": last failed at " + dateTimeFormatter.format(lastFail));
- } else {
- out.println("\tDataConnector " + connector.getId() + ": has never failed");
+ if (resolver instanceof AttributeResolverImpl) {
+ final Collection<DataConnector> connectors = ((AttributeResolverImpl) resolver).getDataConnectors().values();
+ for (final DataConnector connector: connectors) {
+ final Instant lastFail = connector.getLastFail();
+ if (null != lastFail) {
+ out.println("\tDataConnector " + connector.getId() + ": last failed at " + dateTimeFormatter.format(lastFail));
+ } else {
+ out.println("\tDataConnector " + connector.getId() + ": has never failed");
+ }
+ out.println();
}
- out.println();
}
} finally {
component.unpinComponent();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list