[
https://issues.apache.org/jira/browse/MRM-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olivier Lamy (*$^¨%`£) closed MRM-1909.
---------------------------------------
Resolution: Fixed
Assignee: Olivier Lamy (*$^¨%`£)
Fix Version/s: 2.2.2
pr merged.
Thanks!
> Remote repository check fails for https://repo.maven.apache.org/maven2
> ----------------------------------------------------------------------
>
> Key: MRM-1909
> URL: https://issues.apache.org/jira/browse/MRM-1909
> Project: Archiva
> Issue Type: Bug
> Components: rest services
> Affects Versions: 2.2.0
> Reporter: Wolfgang Jung
> Assignee: Olivier Lamy (*$^¨%`£)
> Priority: Minor
> Fix For: 2.2.2
>
>
> Within
> {{org.apache.archiva.rest.services.DefaultRemoteRepositoriesService.checkRemoteConnectivity(String)}}
> wagon is used to check the remote system via {{wagon.getFileList( "/" );}}
> The URL constructed by this is {{https://repo.maven.apache.org/maven2//}}
> (with a double slash at the end) which is answered by the nginx with a 404
> error.
> The quick-fix for me was:
> {code}
> 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 64b8043..14f32f7 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
> @@ -186,7 +187,7 @@
> wagon.connect( new Repository( remoteRepository.getId(),
> remoteRepository.getUrl() ) );
>
> // we only check connectivity as remote repo can be empty
> - wagon.getFileList( "/" );
> + wagon.getFileList( "" );
>
> return Boolean.TRUE;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)