From: Brett Porter Date: Mon, 12 Nov 2007 19:39:47 +0000 (+0000) Subject: make sure the URL includes required / X-Git-Tag: archiva-1.0~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6312584ac3c82bbd95b9183e7fffddbe48baf15c;p=archiva.git make sure the URL includes required / git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@594269 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java index d2656b7f6..9d4c59cef 100644 --- a/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java +++ b/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java @@ -478,7 +478,12 @@ public class DefaultRepositoryProxyConnectors File localFile, Properties requestProperties ) throws ProxyException, NotModifiedException { - String url = remoteRepository.getURL().getUrl() + remotePath; + String url = remoteRepository.getURL().getUrl(); + if ( !url.endsWith( "/" ) ) + { + url = url + "/"; + } + url = url + remotePath; requestProperties.setProperty( "url", url ); // Is a whitelist defined?