[java-idp-plugin-duo] branch main updated: Add bean to allow runtime exceptions to be logged

Phil Smart philip.smart at jisc.ac.uk
Tue Apr 2 10:43:57 UTC 2024


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

philsmart pushed a commit to branch main
in repository java-idp-plugin-duo.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-duo.git;a=commit;h=3a15218156dd754bebc93f6c43ce3abc89ad0cbf

The following commit(s) were added to refs/heads/main by this push:
     new 3a152181 Add bean to allow runtime exceptions to be logged
3a152181 is described below

commit 3a15218156dd754bebc93f6c43ce3abc89ad0cbf
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue Apr 2 11:43:54 2024 +0100

    Add bean to allow runtime exceptions to be logged
    
     - Prevent a stack overflow in tests which log a runtime exception
---
 .../idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
index 84daa41b..305d39f2 100644
--- a/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
+++ b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
@@ -452,6 +452,10 @@ public abstract class AbstractAuthnXmlFlowExecutionTests extends CustomAbstractX
         addBeanDefinition(builderContext, "shibboleth.CommaDelimStringArray",BeanDefinitionBuilder.
                 genericBeanDefinition(StringUtils.class)
                 .setFactoryMethod("commaDelimitedListToStringArray").setAbstract(true).getBeanDefinition());
+        
+        // Add bean to allow runtime exceptions to be logged (rather than a stack overflow).
+        addBeanDefinition(builderContext, "LogRuntimeException",BeanDefinitionBuilder.
+                genericBeanDefinition(net.shibboleth.idp.profile.LogRuntimeException.class).getBeanDefinition());
 
         if (clientFactory != null) {
             //register the client factory

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


More information about the commits mailing list