]> source.dussan.org Git - archiva.git/commitdiff
[MRM-253] Don't allow empty repository name
authorEmmanuel Venisse <evenisse@apache.org>
Tue, 19 Dec 2006 08:53:38 +0000 (08:53 +0000)
committerEmmanuel Venisse <evenisse@apache.org>
Tue, 19 Dec 2006 08:53:38 +0000 (08:53 +0000)
Submitted by: Allan Ramirez

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@488586 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/resources/org/apache/maven/archiva/web/action/admin/ConfigureRepositoryAction-validation.xml
archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/managedRepositoryForm.jspf

index 7bc822e730b050722cfdc8d5b0da62654fb7dd62..2510a4bd3005c3fc58fc8a25f01f7e78d17befd7 100644 (file)
       <message>You must enter the repository identifier.</message>
     </field-validator>
   </field>
+  <field name="urlName">
+    <field-validator type="requiredstring">
+      <message>You must enter the url name.</message>
+    </field-validator>
+  </field>
   <field name="name">
     <field-validator type="requiredstring">
       <message>You must enter the repository name.</message>
@@ -40,4 +45,4 @@
       <message>Invalid repository type.</message>
     </field-validator>
   </field>
-</validators>
\ No newline at end of file
+</validators>
index 72f4c3bf6da8ac7c7e8db522a12b8609da419ad4..bf4512ef91bace74e5273b329337204b70812f3d 100644 (file)
 
 <tr>
   <td>
-    <ww:label for="urlName" theme="simple">URL Name:</ww:label>
+    <ww:label for="urlName" theme="simple">URL Name*:</ww:label>
   </td>
   <td>
-    <c:out value="${urlbase}" /><ww:textfield name="urlName" id="urlName" size="20" theme="simple"/>
+    <c:out value="${urlbase}" /><ww:textfield name="urlName" id="urlName" size="20" theme="simple" required="true" />
   </td>
 </tr>