Whenever i'm trying to use {} or [] in url query string getting bad request.
How i can enable this in wildfly?
Whenever i'm trying to use {} or [] in url query string getting bad request.
How i can enable this in wildfly?
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
By “default allow-unescaped-character-in-url” is set to false and in general, should not be needed as most clients correctly encode characters. Please take note that setting this to true can be considered as a security risk, as allowing non-standard characters can allow request smuggling attacks in some circumstances.
That being said, this issue can be resolved by following below steps:
Please refer to below image for more details