Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5458

Jetty/HTTP Pathless Consumer matchOnUriPrefix=true Breaks Producer bridgeEndpoint=true

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.11.0
    • Component/s: camel-http, camel-jetty
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When a Jetty/HTTP endpoint that has the matchOnUriPrefix=true option set and is configured to match any URI (no path is specified) the HttpHelper concatenates the consumer path to the producer endpoint creating an HttpOperationUnsupportedException.

      For example the following will process as expected and the HttpHelper class will create the http://localhost:10021/proxy/ping consumer URI:

      from("jetty:http://localhost:10020/ping?matchOnUriPrefix=true")
          .to("jetty:http://localhost:10021/proxy/ping?bridgeEndpoint=true");
      

      While this code will create http://localhost:10021/proxy/ping/ping and create the exception (the only difference is there isn't a path on the consumer):

      from("jetty:http://localhost:10020?matchOnUriPrefix=true")
          .to("jetty:http://localhost:10021/proxy/ping?bridgeEndpoint=true");
      

      Test case and patch will be uploaded shortly.

      Thanks,
      Scott ES
      http://fusesource.com

        Attachments

        1. JettyMatchOnUriPrefixBridgedRouteTest.java
          10 kB
          Scott England-Sullivan
        2. CAMEL-5458-v2.patch
          26 kB
          Scott England-Sullivan
        3. CAMEL-5458-willem.patch
          27 kB
          Willem Jiang
        4. CAMEL-5458.patch
          19 kB
          Scott England-Sullivan

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                sully6768 Scott England-Sullivan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: