summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2008-05-27 08:37:20 +0000
committerMaria Odea B. Ching <oching@apache.org>2008-05-27 08:37:20 +0000
commitd7f69544baa0524c57cdac5683fa7ad31ec26d9f (patch)
tree4417c9c61bd32f2f9fbbdddc9dd98ac621a3c975
parenta53bad491b703f7f51733b81f45afbe01acfd1fb (diff)
downloadarchiva-d7f69544baa0524c57cdac5683fa7ad31ec26d9f.tar.gz
archiva-d7f69544baa0524c57cdac5683fa7ad31ec26d9f.zip
[MRM-818]
set a maximum of 100 characters for the length of the repo group id git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@660425 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/RepositoryGroupsAction.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/RepositoryGroupsAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/RepositoryGroupsAction.java
index 9a4f3d134..4cdafcc6b 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/RepositoryGroupsAction.java
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/RepositoryGroupsAction.java
@@ -109,6 +109,12 @@ public class RepositoryGroupsAction
return ERROR;
}
+ if( repoGroupId.length() > 100 )
+ {
+ addActionError( "Identifier [" + repoGroupId + "] is over the maximum limit of 100 characters" );
+ return ERROR;
+ }
+
configuration.addRepositoryGroup( repositoryGroup );
return saveConfiguration( configuration );
}