axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles McElrea (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-2573) processHTTPPOSTRequest() does not correctly handle the case where HTTP request header SOAPAction is empty
Date Fri, 20 Apr 2007 22:15:15 GMT
processHTTPPOSTRequest()  does not correctly handle the case where HTTP request header SOAPAction
is empty 
-----------------------------------------------------------------------------------------------------------

                 Key: AXIS2-2573
                 URL: https://issues.apache.org/jira/browse/AXIS2-2573
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.1.1
         Environment: All
            Reporter: Charles McElrea


In HTTPTransportUtils there is a method called processHTTPPOSTRequest(). It correctly handles
the case where the HTTP request header element SOAPAction is set to :"some URI" and the case
where SOAPAction:"", but does not handle the case where SOAPAction: <empty>.  Specifically
line, 183 of  this module:

if ((soapActionHeader != null) && soapActionHeader.charAt(0) == '\"'
                && soapActionHeader.endsWith("\"")) {
                soapActionHeader = soapActionHeader.substring(1, soapActionHeader.length()
- 1);
            }

will generate the following exception message "StringIndexOutOfBoundsException: String index
out of range: 0", since soapActionHeader is not null but is of zero length.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message