diff options
author | Emmanuel Venisse <evenisse@apache.org> | 2006-12-19 08:53:38 +0000 |
---|---|---|
committer | Emmanuel Venisse <evenisse@apache.org> | 2006-12-19 08:53:38 +0000 |
commit | 509adc4e9938fae9374c8191f9bb74d3337b9f06 (patch) | |
tree | a869a3bd8eea4f2e5961a551a1b27eb68b75a061 | |
parent | 35b0864eacecd95498a8451c17106c34ecd21a00 (diff) | |
download | archiva-509adc4e9938fae9374c8191f9bb74d3337b9f06.tar.gz archiva-509adc4e9938fae9374c8191f9bb74d3337b9f06.zip |
[MRM-253] Don't allow empty repository name
Submitted by: Allan Ramirez
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@488586 13f79535-47bb-0310-9956-ffa450edef68
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> |