ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1734911 - /webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java
Date Mon, 14 Mar 2016 10:53:05 GMT
Author: coheigea
Date: Mon Mar 14 10:53:05 2016
New Revision: 1734911

URL: http://svn.apache.org/viewvc?rev=1734911&view=rev
Log:
Don't output InclusiveNamespaces if the prefix list is empty

Modified:
    webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java

Modified: webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java?rev=1734911&r1=1734910&r2=1734911&view=diff
==============================================================================
--- webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java
(original)
+++ webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java
Mon Mar 14 10:53:05 2016
@@ -205,7 +205,9 @@ public class WSSecSignatureBase extends
                         }
                         if (wssConfig.isAddInclusivePrefixes()) {
                             List<String> prefixes = getInclusivePrefixes(element);
-                            transformSpec = new ExcC14NParameterSpec(prefixes);
+                            if (!prefixes.isEmpty()) {
+                                transformSpec = new ExcC14NParameterSpec(prefixes);
+                            }
                         }
                         transform =
                             signatureFactory.newTransform(
@@ -252,7 +254,9 @@ public class WSSecSignatureBase extends
                         TransformParameterSpec transformSpec = null;
                         if (wssConfig.isAddInclusivePrefixes()) {
                             List<String> prefixes = getInclusivePrefixes(elementToSign);
-                            transformSpec = new ExcC14NParameterSpec(prefixes);
+                            if (!prefixes.isEmpty()) {
+                                transformSpec = new ExcC14NParameterSpec(prefixes);
+                            }
                         }
                         Transform transform =
                             signatureFactory.newTransform(



Mime
View raw message