You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2014/01/28 14:46:18 UTC

svn commit: r1562069 - /santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/stax/ext/XMLSec.java

Author: coheigea
Date: Tue Jan 28 13:46:18 2014
New Revision: 1562069

URL: http://svn.apache.org/r1562069
Log:
Check that actions were configured

Modified:
    santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/stax/ext/XMLSec.java

Modified: santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/stax/ext/XMLSec.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/stax/ext/XMLSec.java?rev=1562069&r1=1562068&r2=1562069&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/stax/ext/XMLSec.java (original)
+++ santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/stax/ext/XMLSec.java Tue Jan 28 13:46:18 2014
@@ -101,7 +101,7 @@ public class XMLSec {
      *          if the configuration is invalid
      */
     public static XMLSecurityProperties validateAndApplyDefaultsToOutboundSecurityProperties(XMLSecurityProperties securityProperties) throws XMLSecurityConfigurationException {
-        if (securityProperties.getActions() == null) {
+        if (securityProperties.getActions() == null || securityProperties.getActions().isEmpty()) {
             throw new XMLSecurityConfigurationException("stax.noOutputAction");
         }