archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From och...@apache.org
Subject svn commit: r697047 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main: java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java webapp/WEB-INF/jsp/admin/addRepository.jsp
Date Fri, 19 Sep 2008 10:57:57 GMT
Author: oching
Date: Fri Sep 19 03:57:57 2008
New Revision: 697047

URL: http://svn.apache.org/viewvc?rev=697047&view=rev
Log:
[MRM-580]
submitted by Gwen Harold Autencio
-display error in page where user doesn't have write access to the directory specified for
the repo location

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java?rev=697047&r1=697046&r2=697047&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractManagedRepositoriesAction.java
Fri Sep 19 03:57:57 2008
@@ -69,7 +69,7 @@
         }
         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 );

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp?rev=697047&r1=697046&r2=697047&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp
Fri Sep 19 03:57:57 2008
@@ -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"/>



Mime
View raw message