[java-identity-provider COMMIT] /trunk/idp-conf/src/main/resources/system/flows/logout/logout-flow.xml

noreply at shibboleth.net noreply at shibboleth.net
Tue Nov 18 15:40:29 EST 2014


Author: scantor
Date: Tue Nov 18 15:40:29 2014
New Revision: 6937

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6937&view=rev
Log:
Trap runtime exceptions by logging and then passing on to error handling.

Modified:
    trunk/idp-conf/src/main/resources/system/flows/logout/logout-flow.xml

Modified: trunk/idp-conf/src/main/resources/system/flows/logout/logout-flow.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/system/flows/logout/logout-flow.xml?rev=6937&r1=6936&r2=6937&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/system/flows/logout/logout-flow.xml (original)
+++ trunk/idp-conf/src/main/resources/system/flows/logout/logout-flow.xml Tue Nov 18 15:40:29 2014
@@ -41,6 +41,13 @@
         </on-entry>
     </end-state>
 
+    <!-- Passthrough state if an exception is thrown. -->
+
+    <action-state id="LogRuntimeException">
+        <evaluate expression="T(org.slf4j.LoggerFactory).getLogger('net.shibboleth.idp.profile').error('Uncaught runtime exception', rootCauseException)" />
+        <transition to="HandleErrorWithView" />
+    </action-state>
+
     <!-- Unsuccessful terminal state. -->
     
     <end-state id="HandleErrorWithView" view="#{MapEventToView.apply(currentEvent)}">
@@ -56,6 +63,7 @@
 
     <!-- Default is to turn non-proceed events into an error. -->
     <global-transitions>
+        <transition on-exception="java.lang.RuntimeException" to="LogRuntimeException" />
         <transition on="#{!'proceed'.equals(currentEvent.id)}" to="HandleErrorWithView" />
     </global-transitions>
 



More information about the commits mailing list