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

RuntimeCamelCatalog#asEndpointUri strips dash from url with toD and netty4-http

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      https://stackoverflow.com/questions/56136857/how-to-use-camel-tod-and-netty4-http-component-problem-with-optimization-of-din

      This is very similar to CAMEL-12705, but in this case it affects url with dashes. Tested with current master.

      url

      netty4-http:http://a-b-c.hostname.tld:8080/anything

      results in 

      netty4-http:http:a-b:8080/path

      Unit test in attachment.

       

      Maybe

      AbstractCamelCatalog#SYNTAX_PATTERN should be changed to 

      ([\w.-]+)
      

      Or is there reason, why is dash excluded from regexp?

      I have tried to edit regexp and it broke test too, it results in resolved = "netty4-http:http:a-b-c.hostname.tld-8080"

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              bedla Jan Bednar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: