]> source.dussan.org Git - archiva.git/commitdiff
[MRM-371] Unable to add a remote repository
authorFabrice Bellingard <bellingard@apache.org>
Wed, 6 Jun 2007 08:59:27 +0000 (08:59 +0000)
committerFabrice Bellingard <bellingard@apache.org>
Wed, 6 Jun 2007 08:59:27 +0000 (08:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@544773 13f79535-47bb-0310-9956-ffa450edef68

archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java

index 6af1946970fd025e9afdc9a88bc0fbd1d5348a18..b86f7bf174a4d2e412f6d7aa06f370ca88e7f2a1 100644 (file)
@@ -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() )
         {