From f814cbad989a9e44600ff1963e6a53710d439114 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Wed, 6 Jun 2007 08:59:27 +0000 Subject: [PATCH] [MRM-371] Unable to add a remote repository git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@544773 13f79535-47bb-0310-9956-ffa450edef68 --- .../action/admin/repositories/ConfigureRepositoryAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java index 6af194697..b86f7bf17 100644 --- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java +++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java @@ -273,7 +273,10 @@ public class ConfigureRepositoryAction // Fix the URL entry (could possibly be a filesystem path) String rawUrlEntry = repository.getUrl(); - repository.setUrl( PathUtil.toUrl( rawUrlEntry ) ); + if ( !rawUrlEntry.startsWith( "http://" ) ) + { + repository.setUrl( PathUtil.toUrl( rawUrlEntry ) ); + } if ( repository.isManaged() ) { -- 2.39.5