+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.javaWhen 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 MalformedURLExceptionbecause 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
