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

CamelCatalog::asEndpointUri mangles endpoint URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.9-GA
    • fuse-7.1, fuse-7.9-GA
    • Camel
    • None
    • False
    • False
    • % %
    • Todo
    • Undefined

      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.

            zregvart@redhat.com Zoran Regvart
            zregvart@redhat.com Zoran Regvart
            Branislav Smolicek Branislav Smolicek
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: