continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r540605 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
Date Tue, 22 May 2007 15:00:50 GMT
Author: evenisse
Date: Tue May 22 08:00:49 2007
New Revision: 540605

URL: http://svn.apache.org/viewvc?view=rev&rev=540605
Log:
[CONTINUUM-1276] Don't allow spaces as a project group name
Submitted by: Teodoro Cue Jr.

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java?view=diff&rev=540605&r1=540604&r2=540605
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
Tue May 22 08:00:49 2007
@@ -256,6 +256,11 @@
             addActionError( "projectGroup.error.name.required" );
             return INPUT;
         }
+        else if ( name != null && name.trim().equals( "" ) )
+        {
+            addActionError( "projectGroup.error.name.cannot.be.spaces" );
+            return INPUT;
+        }
 
         projectGroup = getContinuum().getProjectGroupWithProjects( projectGroupId );
 



Mime
View raw message