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

Rest DSL passes blank query parameters as null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.2, 2.17.0
    • 2.19.1, 2.20.0
    • rest
    • None
    • Java 1.8.0_66, Maven 3.3.3 (from Spring Boot maven wrapper), Netty 4.x

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: