diff options
author | Maria Odea B. Ching <oching@apache.org> | 2008-09-19 11:32:29 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2008-09-19 11:32:29 +0000 |
commit | 3828939a860e01f52519375094a8e4e9a58d89a1 (patch) | |
tree | bf5ddd38850b26bbffb00bc89981533cb24c93cb | |
parent | ca422b2be8351a79f96fa2c0f50d3ef62da601fa (diff) | |
download | archiva-3828939a860e01f52519375094a8e4e9a58d89a1.tar.gz archiva-3828939a860e01f52519375094a8e4e9a58d89a1.zip |
[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/archiva-1.1.x@697061 13f79535-47bb-0310-9956-ffa450edef68
2 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java b/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-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java +++ b/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-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp index 55bbda151..d31e092de 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp @@ -30,7 +30,7 @@ <h1>Admin: Add Managed Repository</h1> <div id="contentArea"> - + <ww:actionerror/> <ww:actionmessage/> <ww:form method="post" action="addRepository!commit" namespace="/admin" validate="true"> <ww:textfield name="repository.id" label="Identifier" size="10" required="true"/> |