]> source.dussan.org Git - archiva.git/commitdiff
[MRM-580] Web app does not give error message when one defines an illegal directory...
authorMaria Odea B. Ching <oching@apache.org>
Fri, 19 Sep 2008 11:32:29 +0000 (11:32 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Fri, 19 Sep 2008 11:32:29 +0000 (11:32 +0000)
-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

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp

index 7fc658676075c56f08af18d0edc0b60925b7b762..a16700f753f22101dddaedad8eadea4a9604f5b5 100644 (file)
@@ -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 );
index 55bbda15106fcfe72e0b660d3639978a6e26b0aa..d31e092de71a80a4402402badc90ebd7cc4168af 100644 (file)
@@ -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"/>