Whenever i'm trying to use {} or [] in url query string getting bad request.
How i can enable this in wildfly?
eg: https://stackoverflow.com?someVar={}
In JBoss 7.2, I had to edit the standalone.xml and make the following change to get it working:
<http-listener name="default" socket-binding="http" allow-unescaped-characters-in-url="true" redirect-socket="https" enable-http2="true"/>
Note that I have added a new attribute called allow-unescaped-characters-in-url="true".
The -Dorg.wildfly.undertow.ALLOW_UNESCAPED_CHARACTERS_IN_URL=true didn't work.
There is a configuration option in undertow, which allows special characters as umlauts, {}, etc in the URL.
The property is: org.wildfly.undertow.ALLOW_UNESCAPED_CHARACTERS_IN_URL
, e.g.:
./bin/standalone.sh -Dorg.wildfly.undertow.ALLOW_UNESCAPED_CHARACTERS_IN_URL=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With