From: Martin Stockhammer Date: Tue, 13 Sep 2016 16:33:19 +0000 (+0200) Subject: Removing trailing slash in remote repository check X-Git-Tag: without_jdo~24^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e4a2e65f6e214bc0bb7248fd634e0160580e9ee0;p=archiva.git Removing trailing slash in remote repository check See https://issues.apache.org/jira/browse/MRM-1909 --- diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java index 9c0bdd925..5a7948719 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java @@ -201,7 +201,8 @@ public class DefaultRemoteRepositoriesService wagon.connect( new Repository( remoteRepository.getId(), remoteRepository.getUrl() ), proxyInfo ); // we only check connectivity as remote repo can be empty - wagon.getFileList( "/" ); + // MRM-1909: Wagon implementation appends a slash already + wagon.getFileList( "" ); return Boolean.TRUE; }