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 "Sergio (JIRA)" <ji...@apache.org> on 2007/04/17 23:52:15 UTC
[jira] Updated: (AXIS2-2553) When using custom protocol (eg
myhttps) AxisFault caused by MalformedURLException is thrown during web
sevice invocation
[ https://issues.apache.org/jira/browse/AXIS2-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergio updated AXIS2-2553:
--------------------------
Attachment: patch.jar
URL->URI in kernel project:
src/org/apache/axis2/transport/MessageFormatter.java
src/org/apache/axis2/transport/http/AbstractHTTPSender.java
src/org/apache/axis2/transport/http/ApplicationXMLFormatter.java
src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
src/org/apache/axis2/transport/http/HTTPSender.java
src/org/apache/axis2/transport/http/MultipartFormDataFormatter.java
src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
src/org/apache/axis2/transport/http/XFormURLEncodedFormatter.java
src/org/apache/axis2/transport/http/util/URLTemplatingUtil.java
> When using custom protocol (eg myhttps) AxisFault caused by MalformedURLException is thrown during web sevice invocation
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2553
> URL: https://issues.apache.org/jira/browse/AXIS2-2553
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.2, 1.1.1, nightly
> Environment: Windows, JDK 1.4, 1.5
> Reporter: Sergio
> Priority: Blocker
> Attachments: patch.jar
>
>
> When custom protocol is used (eg myssl://localhost/WSTest.asmx) we get AxisFault caused by MalformedURLException
> because of the problem in the method below. For safe custom url endpoint address parsing, you should be using URI and not URL, which
> only allows standard protocols.
> CommonsHTTPTransportSender.writeMessa.writeMessageWithCommons(MessageContext messageContext,
> EndpointReference toEPR, OMOutputFormat format)
> throws AxisFault {
> try {
>
> URL url = new URL(toEPR.getAddress()); //throws MalformedURLException!!!
> .....
--
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
Re: [jira] Updated: (AXIS2-2553) When using custom protocol (eg myhttps)
AxisFault caused by MalformedURLException is thrown during web sevice invocation
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
+1 to this change!
Sanjiva.
Sergio (JIRA) wrote:
> [ https://issues.apache.org/jira/browse/AXIS2-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Sergio updated AXIS2-2553:
> --------------------------
>
> Attachment: patch.jar
>
> URL->URI in kernel project:
>
> src/org/apache/axis2/transport/MessageFormatter.java
> src/org/apache/axis2/transport/http/AbstractHTTPSender.java
> src/org/apache/axis2/transport/http/ApplicationXMLFormatter.java
> src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
> src/org/apache/axis2/transport/http/HTTPSender.java
> src/org/apache/axis2/transport/http/MultipartFormDataFormatter.java
> src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
> src/org/apache/axis2/transport/http/XFormURLEncodedFormatter.java
> src/org/apache/axis2/transport/http/util/URLTemplatingUtil.java
>
>
>> When using custom protocol (eg myhttps) AxisFault caused by MalformedURLException is thrown during web sevice invocation
>> ------------------------------------------------------------------------------------------------------------------------
>>
>> Key: AXIS2-2553
>> URL: https://issues.apache.org/jira/browse/AXIS2-2553
>> Project: Axis 2.0 (Axis2)
>> Issue Type: Bug
>> Components: kernel
>> Affects Versions: 1.2, 1.1.1, nightly
>> Environment: Windows, JDK 1.4, 1.5
>> Reporter: Sergio
>> Priority: Blocker
>> Attachments: patch.jar
>>
>>
>> When custom protocol is used (eg myssl://localhost/WSTest.asmx) we get AxisFault caused by MalformedURLException
>> because of the problem in the method below. For safe custom url endpoint address parsing, you should be using URI and not URL, which
>> only allows standard protocols.
>> CommonsHTTPTransportSender.writeMessa.writeMessageWithCommons(MessageContext messageContext,
>> EndpointReference toEPR, OMOutputFormat format)
>> throws AxisFault {
>> try {
>>
>> URL url = new URL(toEPR.getAddress()); //throws MalformedURLException!!!
>> .....
>
--
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org