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 2009/10/08 13:30:19 UTC

svn commit: r823131 - in /xml/security/trunk: CHANGELOG.txt src/org/apache/xml/security/transforms/Transform.java src/org/apache/xml/security/utils/XMLUtils.java

Author: coheigea
Date: Thu Oct  8 11:30:18 2009
New Revision: 823131

URL: http://svn.apache.org/viewvc?rev=823131&view=rev
Log:
[Bug 47779] - Fix for ConcurrentModificationException in XMLUtils

Modified:
    xml/security/trunk/CHANGELOG.txt
    xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java
    xml/security/trunk/src/org/apache/xml/security/utils/XMLUtils.java

Modified: xml/security/trunk/CHANGELOG.txt
URL: http://svn.apache.org/viewvc/xml/security/trunk/CHANGELOG.txt?rev=823131&r1=823130&r2=823131&view=diff
==============================================================================
--- xml/security/trunk/CHANGELOG.txt (original)
+++ xml/security/trunk/CHANGELOG.txt Thu Oct  8 11:30:18 2009
@@ -1,5 +1,6 @@
 Changelog for "Apache xml-security" <http://santuario.apache.org/>
 New in v1.4.4-SNAPSHOT
+    Fixed Bug 47779: ConcurrentModificationException in XMLUtils.  
     Fixed Bug 47761: xmlns:xml namespace improperly emitted during excl c14n. Thanks to Scott Cantor.
     Fixed Bug 36526: Out of memory error when signing or verifying big files. Thanks to Agnes Juhasz.
     Fixed Bug 47784: ClassNotFoundException when init the xml security in OSGi plateform

Modified: xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java?rev=823131&r1=823130&r2=823131&view=diff
==============================================================================
--- xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java (original)
+++ xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java Thu Oct  8 11:30:18 2009
@@ -18,8 +18,6 @@
 
 import java.io.IOException;
 import java.io.OutputStream;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
 import java.util.HashMap;
 import javax.xml.parsers.ParserConfigurationException;
 

Modified: xml/security/trunk/src/org/apache/xml/security/utils/XMLUtils.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src/org/apache/xml/security/utils/XMLUtils.java?rev=823131&r1=823130&r2=823131&view=diff
==============================================================================
--- xml/security/trunk/src/org/apache/xml/security/utils/XMLUtils.java (original)
+++ xml/security/trunk/src/org/apache/xml/security/utils/XMLUtils.java Thu Oct  8 11:30:18 2009
@@ -227,7 +227,8 @@
 
 
    static  String dsPrefix=null;
-   static Map namePrefixes=new HashMap();
+   private static Map namePrefixes= java.util.Collections.synchronizedMap(new HashMap());
+
    /**
     * Creates an Element in the XML Signature specification namespace.
     *