From e4a2e65f6e214bc0bb7248fd634e0160580e9ee0 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Tue, 13 Sep 2016 18:33:19 +0200 Subject: [PATCH] Removing trailing slash in remote repository check See https://issues.apache.org/jira/browse/MRM-1909 --- .../rest/services/DefaultRemoteRepositoriesService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5