[java-identity-provider] branch master updated: Expose propagateResolutionExceptions flag to custom syntax.

Scott Cantor cantor.2 at osu.edu
Tue Oct 2 10:41:58 EDT 2018


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=71edef6e8b57a1e93f9d42962a97174ff698d2b6

The following commit(s) were added to refs/heads/master by this push:
       new  71edef6   Expose propagateResolutionExceptions flag to custom syntax.
71edef6 is described below

commit 71edef6e8b57a1e93f9d42962a97174ff698d2b6
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Oct 2 10:41:54 2018 -0400

    Expose propagateResolutionExceptions flag to custom syntax.
---
 .../idp/attribute/resolver/spring/BaseResolverPluginParser.java    | 7 +++++++
 .../src/main/resources/schema/shibboleth-attribute-resolver.xsd    | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/idp-attribute-resolver-spring/src/main/java/net/shibboleth/idp/attribute/resolver/spring/BaseResolverPluginParser.java b/idp-attribute-resolver-spring/src/main/java/net/shibboleth/idp/attribute/resolver/spring/BaseResolverPluginParser.java
index c060af1..bafb36a 100644
--- a/idp-attribute-resolver-spring/src/main/java/net/shibboleth/idp/attribute/resolver/spring/BaseResolverPluginParser.java
+++ b/idp-attribute-resolver-spring/src/main/java/net/shibboleth/idp/attribute/resolver/spring/BaseResolverPluginParser.java
@@ -55,6 +55,7 @@ public abstract class BaseResolverPluginParser extends AbstractSingleBeanDefinit
         return defnId;
     }
 
+// Checkstyle: CyclomaticComplexity OFF
     /** {@inheritDoc} */
     @Override protected void doParse(@Nonnull final Element config, @Nonnull final ParserContext parserContext,
             @Nonnull final BeanDefinitionBuilder builder) {
@@ -88,6 +89,11 @@ public abstract class BaseResolverPluginParser extends AbstractSingleBeanDefinit
                     StringSupport.trimOrNull(config.getAttributeNS(null, "profileContextStrategyRef")));
         }
 
+        if (config.hasAttributeNS(null, "propagateResolutionExceptions")) {
+            builder.addPropertyValue("propagateResolutionExceptions",
+                    StringSupport.trimOrNull(config.getAttributeNS(null, "propagateResolutionExceptions")));
+        }
+
         final List<Element> dependencyElements =
                 ElementSupport.getChildElements(config, ResolverPluginDependencyParser.ELEMENT_NAME);
         dependencyElements.addAll(
@@ -105,6 +111,7 @@ public abstract class BaseResolverPluginParser extends AbstractSingleBeanDefinit
         }
         builder.addPropertyValue("dependencies", SpringSupport.parseCustomElements(dependencyElements, parserContext));
     }
+// Checkstyle: CyclomaticComplexity ON
     
     /** Controls parsing of Dependencies. 
      * 
diff --git a/idp-schema/src/main/resources/schema/shibboleth-attribute-resolver.xsd b/idp-schema/src/main/resources/schema/shibboleth-attribute-resolver.xsd
index b414e44..65f0ec4 100644
--- a/idp-schema/src/main/resources/schema/shibboleth-attribute-resolver.xsd
+++ b/idp-schema/src/main/resources/schema/shibboleth-attribute-resolver.xsd
@@ -317,6 +317,13 @@
                 </documentation>
             </annotation>
         </attribute>
+        <attribute name="propagateResolutionExceptions" type="string">
+            <annotation>
+                <documentation>
+                    Whether to ripple errors produced by the plugin out to the resolver (default is true).
+                </documentation>
+            </annotation>
+        </attribute>
     </complexType>
 
     <complexType name="BaseResolutionPlugInType" abstract="true">

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


More information about the commits mailing list