Reputation: 389
For the URL https://example.com?price[gte]=100
I get the exception
ava.lang.IllegalArgumentException: Invalid character found in the request target [?price[gte]=100]. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:491) ~[tomcat-embed-core-9.0.36.jar:9.0.36]
How to fix this?
Upvotes: 1
Views: 1190
Reputation: 389
This can be configured in properties
server:
tomcat:
relaxed-query-chars: "[,]"
Upvotes: 1