ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1535764 - /ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/RepositoryConfigurationImpl.java
Date Fri, 25 Oct 2013 15:25:53 GMT
Author: jawi
Date: Fri Oct 25 15:25:53 2013
New Revision: 1535764

URL: http://svn.apache.org/r1535764
Log:
Ensure the OBR URL always ends with a single trailing slash.


Modified:
    ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/RepositoryConfigurationImpl.java

Modified: ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/RepositoryConfigurationImpl.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/RepositoryConfigurationImpl.java?rev=1535764&r1=1535763&r2=1535764&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/RepositoryConfigurationImpl.java
(original)
+++ ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/RepositoryConfigurationImpl.java
Fri Oct 25 15:25:53 2013
@@ -234,7 +234,9 @@ final class RepositoryConfigurationImpl 
         }
         else if (value instanceof String) {
             try {
-                return new URL((String) value);
+                String url = (String) value;
+                // ensure OBR-url always ends with a single forward slash...
+                return new URL(url.replaceAll("/*$", "/"));
             }
             catch (MalformedURLException exception) {
                 // Ignore, use default value...



Mime
View raw message