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 2011/04/12 17:50:56 UTC

svn commit: r1091481 - in /santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security: encryption/XMLCipher.java utils/XMLUtils.java

Author: coheigea
Date: Tue Apr 12 15:50:56 2011
New Revision: 1091481

URL: http://svn.apache.org/viewvc?rev=1091481&view=rev
Log:
Fixed a bug that was introduced as part of the refactoring.

Modified:
    santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
    santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/utils/XMLUtils.java

Modified: santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java?rev=1091481&r1=1091480&r2=1091481&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java (original)
+++ santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java Tue Apr 12 15:50:56 2011
@@ -1862,10 +1862,8 @@ public class XMLCipher {
             final String tagname = "fragment";
 
             // Create the context to parse the document against
-            StringBuilder sb;
-
-            sb = new StringBuilder();
-            sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><"+tagname);
+            StringBuilder sb = new StringBuilder();
+            sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><" + tagname);
 
             // Run through each node up to the document node and find any
             // xmlns: nodes

Modified: santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/utils/XMLUtils.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/utils/XMLUtils.java?rev=1091481&r1=1091480&r2=1091481&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/utils/XMLUtils.java (original)
+++ santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/utils/XMLUtils.java Tue Apr 12 15:50:56 2011
@@ -255,7 +255,7 @@ public class XMLUtils {
         if ((xencPrefix == null) || (xencPrefix.length() == 0)) {
             return doc.createElementNS(EncryptionConstants.EncryptionSpecNS, elementName);
         }
-        StringBuilder tag = new StringBuilder(dsPrefix);
+        StringBuilder tag = new StringBuilder(xencPrefix);
         tag.append(':');
         tag.append(elementName);
         return doc.createElementNS(EncryptionConstants.EncryptionSpecNS, tag.toString());