aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archiva-webapp/src/main/resources/org/apache/maven/archiva/web/action/admin/ConfigureRepositoryAction-validation.xml7
-rw-r--r--archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/managedRepositoryForm.jspf4
2 files changed, 8 insertions, 3 deletions
diff --git a/archiva-webapp/src/main/resources/org/apache/maven/archiva/web/action/admin/ConfigureRepositoryAction-validation.xml b/archiva-webapp/src/main/resources/org/apache/maven/archiva/web/action/admin/ConfigureRepositoryAction-validation.xml
index 7bc822e73..2510a4bd3 100644
--- a/archiva-webapp/src/main/resources/org/apache/maven/archiva/web/action/admin/ConfigureRepositoryAction-validation.xml
+++ b/archiva-webapp/src/main/resources/org/apache/maven/archiva/web/action/admin/ConfigureRepositoryAction-validation.xml
@@ -24,6 +24,11 @@
<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>
diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/managedRepositoryForm.jspf b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/managedRepositoryForm.jspf
index 72f4c3bf6..bf4512ef9 100644
--- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/managedRepositoryForm.jspf
+++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/managedRepositoryForm.jspf
@@ -20,10 +20,10 @@
<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>