axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/handlers/http URLMapper.java
Date Fri, 03 Aug 2001 17:12:49 GMT
gdaniels    01/08/03 10:12:49

  Modified:    java/src/org/apache/axis/handlers/http URLMapper.java
  Log:
  Bulletproofing.
  
  Revision  Changes    Path
  1.3       +5 -2      xml-axis/java/src/org/apache/axis/handlers/http/URLMapper.java
  
  Index: URLMapper.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/http/URLMapper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- URLMapper.java	2001/06/13 11:37:22	1.2
  +++ URLMapper.java	2001/08/03 17:12:49	1.3
  @@ -79,9 +79,12 @@
                                                 HTTPConstants.MC_HTTP_SERVLETREQUEST);
               
               // Assumes "/" + servicename
  -            String path = req.getPathInfo().substring(1);
  +            String path = req.getPathInfo();
  +            if ((path != null) && (path.length() > 1)) {
  +                path = path.substring(1);
       
  -            msgContext.setTargetService( path );
  +                msgContext.setTargetService( path );
  +            }
           }
   
           Debug.Print( 1, "Exit : URLMapper::invoke" );
  
  
  

Mime
View raw message