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

URISupport have an bug in method doFastNormalizeUri for normalize EndpointKey

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.7.1, 3.8.0
    • camel-core
    • None
    • Advanced

    Description

      Did not set prev with key after compareTo, and prev value is always the first item of parameter.keySet(), if keyset like this: a, c, b, and the value of sort after for loop is false, but its shoud be true. 

      when I build two routes with similar to-endpoint, build 2nd route will trigger registerEndpointCallback method, this makes AbstractCamelContext have two endpoint with similar endpointkey in endpoints(EndpointRegistry), then if I remove one of them by removeRoute method, camel context will invoke removeEndpoints by matchEndpoint at line 742, camel will stop all of them(include its connection pool) but did not remove from EndpointRegistry(key is not match), then when new exchange passing to to-endpoint, connection pool shut down exception is arised.

      plz have alook about this issue.

       

      Attachments

        1. image-2020-12-23-11-15-49-815.png
          64 kB
          Benjamin Zheng
        2. image-2020-12-23-11-17-24-982.png
          49 kB
          Benjamin Zheng

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kmanzxbin Benjamin Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: