[java-identity-provider] branch master updated: IDP-1121 - V4 Deprecation work - Attribute Resolver

Scott Cantor cantor.2 at osu.edu
Wed Feb 6 15:19:09 EST 2019


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

scantor 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=d2c30c93a21570afe7e5224283512cfec6d4bfc8

The following commit(s) were added to refs/heads/master by this push:
       new  d2c30c9   IDP-1121 - V4 Deprecation work - Attribute Resolver
d2c30c9 is described below

commit d2c30c93a21570afe7e5224283512cfec6d4bfc8
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Feb 6 15:19:07 2019 -0500

    IDP-1121 - V4 Deprecation work - Attribute Resolver
    
    https://issues.shibboleth.net/jira/browse/IDP-1121
    
    Fix status page.
---
 idp-war/src/main/webapp/WEB-INF/jsp/status.jsp | 23 ++++++++---------------
 1 file changed, 8 insertions(+), 15 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 b9fe6c3..854b918 100644
--- a/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
+++ b/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
@@ -16,7 +16,6 @@
 <%@ page import="net.shibboleth.idp.saml.metadata.RelyingPartyMetadataProvider" %>
 <%@ page import="net.shibboleth.idp.attribute.resolver.AttributeResolver" %>
 <%@ page import="net.shibboleth.idp.attribute.resolver.DataConnector" %>
-<%@ page import="net.shibboleth.idp.attribute.resolver.DataConnectorEx" %>
 <%@ page import="net.shibboleth.utilities.java.support.component.IdentifiedComponent" %>
 <%@ page import="net.shibboleth.utilities.java.support.service.ReloadableService" %>
 <%@ page import="net.shibboleth.utilities.java.support.service.ServiceableComponent" %>
@@ -119,21 +118,15 @@ for (final ReloadableService service : (Collection<ReloadableService>) request.g
         if (null != component) {
             try {
                 AttributeResolver resolver = component.getComponent();
-                final Collection<DataConnector> connectors = resolver.getDataConnectors().values();
-                
-                for (final DataConnector connector: connectors) {
-                    if (connector instanceof DataConnectorEx) {
-                        DataConnectorEx connectorEx = (DataConnectorEx) connector;
-                    
-                        final long lastFail = connectorEx.getLastFail();
-                        if (0 != lastFail) {
-                            DateTime failDateTime = new DateTime(lastFail);
-                            out.println("\tDataConnector " +  connectorEx.getId() + ": last failed at " + failDateTime.toString(dateTimeFormatter));
-                        } else {
-                            out.println("\tDataConnector " +  connectorEx.getId() + ": has never failed");
-                        }
-                        out.println();
+                for (final DataConnector connector: resolver.getDataConnectors().values()) {
+                    final long lastFail = connector.getLastFail();
+                    if (0 != lastFail) {
+                        DateTime failDateTime = new DateTime(lastFail);
+                        out.println("\tDataConnector " +  connector.getId() + ": last failed at " + failDateTime.toString(dateTimeFormatter));
+                    } else {
+                        out.println("\tDataConnector " +  connector.getId() + ": has never failed");
                     }
+                    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