You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2002/01/09 15:29:11 UTC

cvs commit: jakarta-tomcat-connectors/webapp/java WarpConfigurationHandler.java

jfclere     02/01/09 06:29:11

  Modified:    webapp/java WarpConfigurationHandler.java
  Log:
  The findChild() needs a lower case name (See setName).
  PR: 4334
  
  Revision  Changes    Path
  1.17      +2 -1      jakarta-tomcat-connectors/webapp/java/WarpConfigurationHandler.java
  
  Index: WarpConfigurationHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/java/WarpConfigurationHandler.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- WarpConfigurationHandler.java	22 Oct 2001 16:12:52 -0000	1.16
  +++ WarpConfigurationHandler.java	9 Jan 2002 14:29:11 -0000	1.17
  @@ -258,7 +258,8 @@
   
           Container container=connection.getConnector().getContainer();
   
  -        Host host=(Host)container.findChild(hostName);
  +        // the hostName should be in lowewr case (setName makes a toLowerCase).
  +        Host host=(Host)container.findChild(hostName.toLowerCase());
           if (host==null) {
               WarpHost whost=new WarpHost();
               whost.setName(hostName);
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>