aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest
diff options
context:
space:
mode:
authorMartin Stockhammer <m.stockhammer@web.de>2016-09-13 18:33:19 +0200
committerMartin Stockhammer <m.stockhammer@web.de>2016-09-13 18:33:19 +0200
commite4a2e65f6e214bc0bb7248fd634e0160580e9ee0 (patch)
tree7253c491625f0efbdb44847743338ce631a3db92 /archiva-modules/archiva-web/archiva-rest
parentcae55ace9ff82bf55aec318e237ba9768ccc940f (diff)
downloadarchiva-e4a2e65f6e214bc0bb7248fd634e0160580e9ee0.tar.gz
archiva-e4a2e65f6e214bc0bb7248fd634e0160580e9ee0.zip
Removing trailing slash in remote repository check
See https://issues.apache.org/jira/browse/MRM-1909
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java3
1 files changed, 2 insertions, 1 deletions
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;
}