Server configuration issues
Server configuration with relaxedQueryChars
Advanced query filters in the Delivery API require extra Tomcat configuration, namely setting relaxedQueryChars="[]|"
.
Symptom
HTTP Status 400 - Bad Request
Message
Invalid character found in the request target [/.rest/delivery/tours/v1/magnolia-travels/Vietnam--Tradition-and-Today?mgnl:created[in]=2015-12-01~2015-12-31]. The valid characters are defined in RFC 7230 and RFC 3986
Description
The server cannot or will not process the request due to something that is perceived to be a client error (for example, malformed request syntax, invalid request message framing, or deceptive request routing).
Exception
java.lang.IllegalArgumentException