From 6312584ac3c82bbd95b9183e7fffddbe48baf15c Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Mon, 12 Nov 2007 19:39:47 +0000 Subject: [PATCH] make sure the URL includes required / git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@594269 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/proxy/DefaultRepositoryProxyConnectors.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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? -- 2.39.5