]> source.dussan.org Git - archiva.git/commitdiff
Removing trailing slash in remote repository check
authorMartin Stockhammer <m.stockhammer@web.de>
Tue, 13 Sep 2016 16:33:19 +0000 (18:33 +0200)
committerMartin Stockhammer <m.stockhammer@web.de>
Tue, 13 Sep 2016 16:33:19 +0000 (18:33 +0200)
See https://issues.apache.org/jira/browse/MRM-1909

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java

index 9c0bdd925bd8591bdc1eee5786802ba21f364eee..5a7948719e184f0d5e9df53eb1af5ed45b3b0b90 100644 (file)
@@ -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;
         }