EAP 6 reads multipart/form-data with incorrect encoding
Environment
- JBoss Enterprise Application Platform (EAP) 6.x
Issue
- We post some UTF-8 multipart/form-data to JBoss. Parameters are not read by JBoss with the correct encoding. For instance, the below results in garbled text read from the request parameter:
request.setCharacterEncoding("UTF-8");
request.getParts()
String text = request.getParameter("sometextfield");
Resolution
- Upgrade to 6.4.16
Root Cause
SBR
Components
Category
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.