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() ) {