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

Rest DSL passes blank query parameters as null

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.16.2, 2.17.0
    • Fix Version/s: 2.19.1, 2.20.0
    • Component/s: rest
    • Labels:
      None
    • Environment:

      Java 1.8.0_66, Maven 3.3.3 (from Spring Boot maven wrapper), Netty 4.x

    • Estimated Complexity:
      Unknown

      Description

      First, see my companion project. My problem here is that if you send a query parameter without a value:

      curl http://localhost:8080/piq/test?foo
      

      or if you send just a single space:

      curl http://localhost:8080/piq/test?foo=+
      

      you can see that the header is null. For context, this route sets the body to true if the foo header is null, or false otherwise.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              mattsicker Matt Sicker
            • Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: