ws-commits mailing list archives

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

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

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

Modified: webservices/wss4j/branches/2_1_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_1_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java?rev=1734908&r1=1734907&r2=1734908&view=diff
==============================================================================
--- webservices/wss4j/branches/2_1_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java
(original)
+++ webservices/wss4j/branches/2_1_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignatureBase.java
Mon Mar 14 10:44:58 2016
@@ -133,7 +133,9 @@ public class WSSecSignatureBase extends
                         }
                         if (addInclusivePrefixes) {
                             List<String> prefixes = getInclusivePrefixes(element);
-                            transformSpec = new ExcC14NParameterSpec(prefixes);
+                            if (!prefixes.isEmpty()) {
+                                transformSpec = new ExcC14NParameterSpec(prefixes);
+                            }
                         }
                         transform =
                             signatureFactory.newTransform(
@@ -180,7 +182,9 @@ public class WSSecSignatureBase extends
                         TransformParameterSpec transformSpec = null;
                         if (addInclusivePrefixes) {
                             List<String> prefixes = getInclusivePrefixes(elementToSign);
-                            transformSpec = new ExcC14NParameterSpec(prefixes);
+                            if (!prefixes.isEmpty()) {
+                                transformSpec = new ExcC14NParameterSpec(prefixes);
+                            }
                         }
                         Transform transform =
                             signatureFactory.newTransform(



Mime
View raw message