Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 72830 invoked from network); 22 Jun 2007 16:10:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2007 16:10:04 -0000 Received: (qmail 92663 invoked by uid 500); 22 Jun 2007 16:09:51 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 92616 invoked by uid 500); 22 Jun 2007 16:09:51 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 92590 invoked by uid 99); 22 Jun 2007 16:09:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 09:09:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 09:09:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E3EE07141DC for ; Fri, 22 Jun 2007 09:09:25 -0700 (PDT) Message-ID: <20858692.1182528565931.JavaMail.jira@brutus> Date: Fri, 22 Jun 2007 09:09:25 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-2573) processHTTPPOSTRequest() does not correctly handle the case where HTTP request header SOAPAction is empty In-Reply-To: <31039860.1177107315309.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davanum Srinivas resolved AXIS2-2573. ------------------------------------- Resolution: Fixed > 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.2, 1.1.1 > Environment: All > Reporter: Charles McElrea > Assignee: Keith Godwin Chapman > > 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: . 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. > FYI - This problem can be fixed with the following code which insures that the header has at least 2 characters before using the charAt() function. > if ((soapActionHeader != null) && (soapActionHeader.length() > 1)) { > > if (soapActionHeader.charAt(0) == '\"' && soapActionHeader.endsWith("\"")) { > soapActionHeader = soapActionHeader.substring(1, soapActionHeader.length() - 1); > } > } -- 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