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

Camel HTTP Component is not allowing underscores in the hostname

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.23.1
    • None
    • camel-http4
    • None
    • Unknown

    Description

      Hello Team,

      We are trying to connect to a https endpoint from our camel route using http4 component which has an underscore in the hostname. The endpoint looks like https://x_y.abc.zu.dw:1243/path  and we receive an error message  "Invalid uri: https:/path?chunked=true&httpClient.connectTimeout=XXXX&httpClient.socketTimeout=XXX&throwExceptionOnFailure=false&bridgeEndpoint=true If you are forwarding/bridging http endpoints, then enable the bridgeEndpoint option on the endpoint: https:/path?chunked=true&httpClient.connectTimeout=XXXX&httpClient.socketTimeout=XXX&throwExceptionOnFailure=false&bridgeEndpoint=true.

      Usually it is against the valid host name rules but is there any way to fix in the http4 component to avoid the issue as the system can't change their hostname currently.

      I saw a similar kind of issue in https://issues.apache.org/jira/browse/CAMEL-4769.

      If there is any possibility to fix this issue in camel http4 component, it will help us a lot.

       

      Thanks,

      Priya

      Attachments

        Activity

          People

            Unassigned Unassigned
            padmapriyakowlwar Padma Priya Kowlwar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: