ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r1245212 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java
Date Thu, 16 Feb 2012 22:20:13 GMT
Author: maartenc
Date: Thu Feb 16 22:20:13 2012
New Revision: 1245212

URL: http://svn.apache.org/viewvc?rev=1245212&view=rev
Log:
Attempt to fix failing tests on gump (it seems there is a problem with file URLs containing
'..')

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java?rev=1245212&r1=1245211&r2=1245212&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java Thu Feb 16
22:20:13 2012
@@ -103,7 +103,7 @@ public abstract class AbstractURLHandler
             
             // it is possible that the original url was already (partial) escaped,
             // so we must unescape all '%' followed by 2 hexadecimals...
-            String uriString = uri.toASCIIString();
+            String uriString = uri.normalize().toASCIIString();
             
             // manually escape the '+' character
             uriString = uriString.replaceAll("\\+", "%2B");



Mime
View raw message