1

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?

user13674325
  • 339
  • 2
  • 14
  • 1
    Have you checked related question ? https://stackoverflow.com/questions/41053653/tomcat-8-is-not-able-to-handle-get-request-with-in-query-parameters – Andrii Chertok Jul 06 '20 at 15:44

1 Answers1

1

This can be configured in properties

server:
  tomcat:
    relaxed-query-chars: "[,]"
user13674325
  • 339
  • 2
  • 14