You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/05/23 12:40:04 UTC
[jira] [Assigned] (CAMEL-9935) Rest DSL passes blank query
parameters as null
[ https://issues.apache.org/jira/browse/CAMEL-9935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-9935:
----------------------------------
Assignee: Claus Ibsen
> Rest DSL passes blank query parameters as null
> ----------------------------------------------
>
> Key: CAMEL-9935
> URL: https://issues.apache.org/jira/browse/CAMEL-9935
> Project: Camel
> Issue Type: Bug
> Components: rest
> Affects Versions: 2.16.2, 2.17.0
> Environment: Java 1.8.0_66, Maven 3.3.3 (from Spring Boot maven wrapper), Netty 4.x
> Reporter: Matt Sicker
> Assignee: Claus Ibsen
> Priority: Minor
>
> First, [see my companion project|https://github.com/jvz/plus-in-query]. My problem here is that if you send a query parameter without a value:
> {code}
> curl http://localhost:8080/piq/test?foo
> {code}
> or if you send just a single space:
> {code}
> curl http://localhost:8080/piq/test?foo=+
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)