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-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context ContextForm.java
Date Mon, 07 Apr 2003 03:28:31 GMT
amyroh      2003/04/06 20:28:31

  Modified:    webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context
                        ContextForm.java
  Log:
  Uncomment path validation on context path.
  
  Revision  Changes    Path
  1.12      +7 -7      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context/ContextForm.java
  
  Index: ContextForm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context/ContextForm.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ContextForm.java	14 Mar 2003 16:00:16 -0000	1.11
  +++ ContextForm.java	7 Apr 2003 03:28:31 -0000	1.12
  @@ -798,9 +798,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