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?