“Invalid URL for incoming request: Illegal character in query at index” in spring cloud gateway
I have a route on gateway configured as path_route which sends query parameters with special characters such as "|". Gateway throws error saying
2018-07-02 13:47:06.460 WARN 12548 --- [ctor-http-nio-2] o.s.h.s.r.ReactorHttpHandlerAdapter : Invalid URL for incoming request: Illegal character in query at index 36: http://localhost:9002/test2?test=123|456
Is there anyway to encode the incoming route URL and escape these special characters?
shouldn't the client urlencode them?
Not in our use case. Client in this case is standalone product (Atlassian JIRA). JIRA users access gateway to authenticate themselves before they gets routed to Atlassian JIRA (Apache -> Gateway -> JIRA). While working through JIRA Kanban workflows these special characters are passed to gateway from JIRA instance. Unfortunately resulting above error.
@spencergibb Is there anyway to do this?
Have a look at my comment here. Might apply to your problem.
Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue.