Uploaded image for project: 'ZZZ-WSO2 ESB'
  1. ZZZ-WSO2 ESB
  2. ESBJAVA-1904

URLRewriteMediator Malformed URL when processing relative path

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 4.6.0
    • Fix Version/s: 4.6.0
    • Component/s: Mediators
    • Labels:
      None
    • Environment:

      Linux VM - Linux tapv016.amfam.com 2.6.18-308.4.1.el5 #1 SMP Wed Mar 28 01:54:56 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

      Description

      When a custom URI Handler is used, to process a request which contains relative path in the URL it gives the following error.

      ERROR - URLRewriteMediator Malformed URL when processing /test/route
      java.net.MalformedURLException: no protocol: /test/route
      at java.net.URL.<init>(URL.java:567)
      at java.net.URL.<init>(URL.java:464)
      at java.net.URL.<init>(URL.java:413)
      at org.apache.synapse.mediators.transform.url.URLRewriteMediator.mediate(URLRewriteMediator.java:51)
      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
      at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:154)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
      at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:434)
      at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:219)
      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      This is working properly in ESB 4.0.2 with JBoss 5.1.0 EAP. However, when migrating to ESB 4.6.0 in Standalone and this custom URI handler is failing with the above message.

        Attachments

          Activity

            People

            • Assignee:
              malaka@wso2.com Malaka Silva
              Reporter:
              malaka@wso2.com Malaka Silva
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: