JBoss EAP 6.4.21 returns "400 Bad Request" response when sending unescaped characters (raw characters like | ) in the query string and path parameters of the request.
Below setup has been tried in <system-properties>
in domain.
<property name="-Dorg.apache.catalina.connector.URI_ENCODING" value="UTF-8"/>
<property name="-Dorg.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING" value="true"/>
According to your JBoss version and the RedHat Official Site:
In summary:
For your jboss version you have to add this line in your startup script
standalone.sh
Take in mind that if you upgrade to eap 7.1.1+, this solution won't work. Instead add this line to the
standalone.conf
file:I hope this can help you.