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 "Charles McElrea (JIRA)" <ji...@apache.org> on 2007/04/21 00:15:15 UTC
[jira] Created: (AXIS2-2573) processHTTPPOSTRequest() does not
correctly handle the case where HTTP request header SOAPAction is empty
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
[jira] Resolved: (AXIS2-2573) processHTTPPOSTRequest() does not
correctly handle the case where HTTP request header SOAPAction is empty
Posted by "Davanum Srinivas (JIRA)" <ji...@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: <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.
> 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
[jira] Updated: (AXIS2-2573) processHTTPPOSTRequest() does not
correctly handle the case where HTTP request header SOAPAction is empty
Posted by "Charles McElrea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charles McElrea updated AXIS2-2573:
-----------------------------------
Description:
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.
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);
}
}
was:
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.
> 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: <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.
> 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
[jira] Assigned: (AXIS2-2573) processHTTPPOSTRequest() does not
correctly handle the case where HTTP request header SOAPAction is empty
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-2573:
----------------------------------------
Assignee: Keith Godwin Chapman
> 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
> Assigned To: 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: <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
[jira] Commented: (AXIS2-2573) processHTTPPOSTRequest() does not
correctly handle the case where HTTP request header SOAPAction is empty
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507434 ]
Davanum Srinivas commented on AXIS2-2573:
-----------------------------------------
Already fixed.
thanks,
dims
> 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: <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.
> 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
[jira] Updated: (AXIS2-2573) processHTTPPOSTRequest() does not
correctly handle the case where HTTP request header SOAPAction is empty
Posted by "Charles McElrea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charles McElrea updated AXIS2-2573:
-----------------------------------
Affects Version/s: 1.2
> 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: <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.
> 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