From d66c8004023c959a39b77da779a049e0055a410f Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Fri, 19 Sep 2008 11:32:29 +0000 Subject: [PATCH] [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 --- .../admin/repositories/AbstractManagedRepositoriesAction.java | 2 +- .../src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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

- + -- 2.39.5