Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16979

CamelCatalog::asEndpointUri mangles endpoint URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: fuse-7.1, fuse-7.9-GA
    • Fix Version/s: fuse-7.9-GA
    • Component/s: Camel
    • Labels:
      None
    • Regression Test:
      Todo

      Description

      Given this:

      final DefaultCamelContext camel = new DefaultCamelContext();
      final RuntimeCamelCatalog catalog = camel.getRuntimeCamelCatalog();final Map<String, String> properties = new HashMap<>();
      properties.put("scheme", "http");
      properties.put("host", "a.b-c.d");
      catalog.asEndpointUri("netty-http", properties, false)

      RuntimeCamelCatalog::asEndpointUri should return netty-http:a.b-c.d?scheme=http, it does not, the returned value is netty-http:a.b/path?scheme=http.

      This affects all versions of Fuse 7, I've tested from 2.21.0.fuse-710018-redhat-00001 2.23.2.fuse-740011-redhat-00001 to 2.23.2.fuse-780036-redhat-00001 and including unreleased 2.23.2.fuse-790051.

      This cannot be reproduced on upstream 2.23.4.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zregvart-redhat Zoran Regvart
              Reporter:
              zregvart-redhat Zoran Regvart
              Tester:
              Branislav Smolicek Branislav Smolicek
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: