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

Rest DSL passes blank query parameters as null

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment