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 2012/02/08 11:30:30 UTC

svn commit: r1241850 - in /santuario/xml-security-java/branches/1.4.x-fixes: CHANGELOG.txt src/org/apache/xml/security/utils/resolver/implementations/ResolverFragment.java

Author: coheigea
Date: Wed Feb  8 10:30:30 2012
New Revision: 1241850

URL: http://svn.apache.org/viewvc?rev=1241850&view=rev
Log:
[SANTUARIO-299] - StringIndexOutOfBoundsException is thrown during reference verification (if URI = "#")

Modified:
    santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt
    santuario/xml-security-java/branches/1.4.x-fixes/src/org/apache/xml/security/utils/resolver/implementations/ResolverFragment.java

Modified: santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt?rev=1241850&r1=1241849&r2=1241850&view=diff
==============================================================================
--- santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt (original)
+++ santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt Wed Feb  8 10:30:30 2012
@@ -1,6 +1,7 @@
 Changelog for "Apache xml-security" <http://santuario.apache.org/>
 
 New in v.1.4.7-SNAPSHOT:
+    Fixed SANTUARIO-299: StringIndexOutOfBoundsException is thrown during reference verification (if URI = "#")
     Fixed SANTUARIO-295: XMLDSig XPathFilter2Transform bug involving intersect filter
     Fixed SANTUARIO-286: Test case Santuario273.testC14n11Base() tests for a side-effect of canonicalization, rather than the desired effect.
 

Modified: santuario/xml-security-java/branches/1.4.x-fixes/src/org/apache/xml/security/utils/resolver/implementations/ResolverFragment.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/branches/1.4.x-fixes/src/org/apache/xml/security/utils/resolver/implementations/ResolverFragment.java?rev=1241850&r1=1241849&r2=1241850&view=diff
==============================================================================
--- santuario/xml-security-java/branches/1.4.x-fixes/src/org/apache/xml/security/utils/resolver/implementations/ResolverFragment.java (original)
+++ santuario/xml-security-java/branches/1.4.x-fixes/src/org/apache/xml/security/utils/resolver/implementations/ResolverFragment.java Wed Feb  8 10:30:30 2012
@@ -122,10 +122,7 @@ public class ResolverFragment extends Re
       String uriNodeValue = uri.getNodeValue();
 
       if  (uriNodeValue.equals("") || 
-             ( 
-            (uriNodeValue.charAt(0)=='#') 
-              && !((uriNodeValue.charAt(1)=='x') && uriNodeValue.startsWith("#xpointer("))
-              )
+             ((uriNodeValue.charAt(0)=='#') && !uriNodeValue.startsWith("#xpointer("))
            ){
          if (log.isDebugEnabled())
          	log.debug("State I can resolve reference: \"" + uriNodeValue + "\"");