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

Camel http4 producer encodes array data to the http uri parameter as comma separated instead of multi-values parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • fuse-7.12-GA
    • fuse-7.11-GA
    • Camel
    • None
    • False
    • None
    • False
    • % %
    • Todo
    • Very Likely

      Camel http4 producer has "HTTP-QUERY" to support the HTTP query parameters.
      https://access.redhat.com/documentation/en-us/red_hat_fuse/7.8/html/apache_camel_component_reference/http4-component#configuring_uri_parameters_2

      The multi-valued parameters are a feature that should be supported in the HTTP components, but comma separated format is used.

      [Expected Format]
      http://localhost:8181/sample/test/hello?ids=Bob&ids=Nancy&ids=David
      [Actual Format]
      http://localhost:8181/sample/test/hello?ids=[Bob, Nancy, David]

      [Steps to reproduce the issue]

      • Download and unzip the CodeReadyStudio maven project
      • Run the CamelContext
      • Check the console log
        expected:
        [XNIO-1 task-1] INFO simple-route - >>> Bob,Nancy,David
        actual:
        [XNIO-1 task-1] INFO simple-route - >>> [Bob, Nancy, David]

            rnetuka@redhat.com Radovan Netuka
            rhn-support-hfuruich Hisao Furuichi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: