[ 
https://issues.apache.org/jira/browse/CAMEL-17124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henrik Karlsson updated CAMEL-17124:
------------------------------------
    Description: 
When a rest api is called using the rest-openapi component query parameter 
headers are not filtered by HttpRestHeaderFilterStrategy. It expects that the 
queryParameters string is url encoded, but as you can see on the screenshot 
it's not. In this case all of the query parameters are flagged as 
required=false and therefore they also have a question mark  after the 
parameter name. So even if the queryParameters string had been encoded it would 
been filtered any way.

!image-2021-10-25-09-41-30-192.png!

  was:
When an rest api using the rest-openapi components query parameter headers are 
not filtered by HttpRestHeaderFilterStrategy. It expects that the 
queryParameters string is url encoded, but as you can see on the screenshot 
it's not. In this case all of the query parameters are flagged as 
required=false and therefore they also have a question mark  after the 
parameter name. So even if the queryParameters string had been encoded it would 
been filtered any way.

!image-2021-10-25-09-41-30-192.png!


> HttpRestHeaderFilterStrategy doesn't filter queryParameter headers
> ------------------------------------------------------------------
>
>                 Key: CAMEL-17124
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17124
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http-common
>    Affects Versions: 3.11.1, 3.11.2, 3.11.0, 3.11.3
>            Reporter: Henrik Karlsson
>            Priority: Minor
>         Attachments: image-2021-10-25-09-41-30-192.png
>
>
> When a rest api is called using the rest-openapi component query parameter 
> headers are not filtered by HttpRestHeaderFilterStrategy. It expects that the 
> queryParameters string is url encoded, but as you can see on the screenshot 
> it's not. In this case all of the query parameters are flagged as 
> required=false and therefore they also have a question mark  after the 
> parameter name. So even if the queryParameters string had been encoded it 
> would been filtered any way.
> !image-2021-10-25-09-41-30-192.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to