[
https://issues.apache.org/jira/browse/AXIS2C-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski resolved AXIS2C-1651.
-------------------------------------
Fix Version/s: 2.0.0
(was: 1.7.0)
Resolution: Fixed
Remove the incorrect string manipulation - use parsed service name directly.
Example:
- URL: /axis2/services/MyLongService?wsdl
- url_tok[0] = "MyLongService" (already clean)
- Old code: "MyLongService"[13-5] = 0 → "MyLongSe" (can't find
service!)
- New code: uses "MyLongService" directly
> Static-WSDL retrieval does strange string operation
> ---------------------------------------------------
>
> Key: AXIS2C-1651
> URL: https://issues.apache.org/jira/browse/AXIS2C-1651
> Project: Axis2-C
> Issue Type: Bug
> Components: core/transport
> Affects Versions: 1.6.0
> Environment: Linux, Axis1.6.0
> Reporter: Andreas Vollmy
> Priority: Minor
> Fix For: 2.0.0
>
>
> If I have a Webservice with a short Service-Name, retrieval of the static
> wsdl works properly. If my Service-Name is longer than 4 Characters, the WSDL
> cannot be retrieved.
> To my understanding, the problem is in http_transport_utils.c in the function
> axis2_http_transport_utils_get_services_static_wsdl:
> The Service-Name is retrieved with axutil_parse_request_url_for_svc_and_op,
> but then instead of using url_tok[0] directly, 0 is written into the
> character at the position (len-5).
> This does not make any sense - in fact it corrupts memory:
> If the Service-Name is shorter than 5 Characters, a 0 is written "somewhere"
> (but the static wsdl is retrieved), if it is longer than 5 characters, the
> name is shortened and no wsdl can be found...
> Please check, if url_tok[0] can be used directly without shortening.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]