You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/06/01 08:36:29 UTC

cvs commit: ws-axis/c/src/transport/axis3 HTTPTransport.cpp

samisa      2005/05/31 23:36:29

  Modified:    c/src/transport/axis3 HTTPTransport.cpp
  Log:
  Fixed a bug in setEndpointURI where NULL strings and and invalid URL suach as " " were not handled properly
  
  Revision  Changes    Path
  1.31      +10 -0     ws-axis/c/src/transport/axis3/HTTPTransport.cpp
  
  Index: HTTPTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis3/HTTPTransport.cpp,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- HTTPTransport.cpp	27 May 2005 10:25:59 -0000	1.30
  +++ HTTPTransport.cpp	1 Jun 2005 06:36:29 -0000	1.31
  @@ -134,6 +134,16 @@
   {
       bool bUpdateURL = false;
   
  +    if (!pcEndpointUri) // We have NULL so cannot proceed
  +        return;
  +
  +    // Samisa:We have to have at lest "http://" in the URL
  +    // We also need to handle passing " " as URL which 
  +    // is done by some auto generated code
  +    if ( strlen(pcEndpointUri) < strlen("http://") ) 
  +        return;
  +                                                  
  +
       // Get the current channel URI
       if( m_pActiveChannel != NULL && m_pActiveChannel->getURL())
       {