How to enable encoded characters in EAP 7 (Undertow) ?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Issue
- How to allow EAP to decode if request comes with encoded characters e.g.
%2F?
Resolution
EAP 7by default does not allow decoding encoded character e.g.%2Fin the request, it can be enabled executing the belowclicommands
/subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=allow-encoded-slash,value=true)
For more information about other attribute of undertow listener
Root Cause
- EAP does not allow raw (eg. "/") characters within the request, the code must be updated to encode the characters and allow those in EAP.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
