From: Maria Odea B. Ching Date: Fri, 19 Sep 2008 11:32:29 +0000 (+0000) Subject: [MRM-580] Web app does not give error message when one defines an illegal directory... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d66c8004023c959a39b77da779a049e0055a410f;p=archiva.git [MRM-580] Web app does not give error message when one defines an illegal directory for a Managed Repository -merged from trunk -r697047 git-svn-id: https://svn.apache.org/repos/asf/archiva/branches@697061 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java b/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java index 7fc658676..a16700f75 100644 --- a/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java +++ b/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java @@ -69,7 +69,7 @@ public abstract class AbstractManagedRepositoriesAction } if ( !file.exists() || !file.isDirectory() ) { - throw new IOException( "unable to add repository - can not create the root directory: " + file ); + throw new IOException( "Unable to add repository - no write access, can not create the root directory: " + file ); } configuration.addManagedRepository( repository ); diff --git a/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp b/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp index 55bbda151..d31e092de 100644 --- a/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp +++ b/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp @@ -30,7 +30,7 @@

Admin: Add Managed Repository

- +