tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amy...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context ContextForm.java
Date Mon, 07 Apr 2003 02:38:15 GMT
amyroh      2003/04/06 19:38:15

  Modified:    webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context
                        ContextForm.java
  Log:
  Uncomment path validation on context page.
  
  Revision  Changes    Path
  1.4       +7 -7      jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context/ContextForm.java
  
  Index: ContextForm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context/ContextForm.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ContextForm.java	25 Mar 2003 08:29:04 -0000	1.3
  +++ ContextForm.java	7 Apr 2003 02:38:15 -0000	1.4
  @@ -799,9 +799,9 @@
               
               // if path is empty, it's root context
               // validate context starting with "/" only at the time of context creation.
  -            //if ("Create".equalsIgnoreCase(adminAction) && !path.startsWith("/"))
{
  -            //    errors.add("path", new ActionError("error.path.prefix"));           
    
  -            //}
  +            if ("Create".equalsIgnoreCase(adminAction) && !path.startsWith("/"))
{
  +                errors.add("path", new ActionError("error.path.prefix"));             
  
  +            }
                           
               //if ((workDir == null) || (workDir.length() < 1)) {
               //    errors.add("workDir", new ActionError("error.workDir.required"));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message