Response character encoding is broken in JSF application running on JBoss EAP 8.0.3+
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 8.0.3+
- JSF (mojarra)
Issue
Response character encoding is broken in JSF application running on JBoss EAP 8.0.3+
Resolution
This issue has been reporeted as This content is not included.JBEAP-28883, which will be fixed in JBoss EAP 8.0.7+ and 8.1.0+.
As a workaround until the fixed version is released, you can specify default character encoding (like UTF-8) explicitly as default-encoding attribute (undefined by default) of <servlet-container> in undertow subsystem. For example:
/subsystem=undertow/servlet-container=default:write-attribute(name="default-encoding", value="utf-8")
<servlet-container name="default" default-encoding="UTF-8"> <!-- add default-encoding="UTF-8" -->
<jsp-config/>
<websockets/>
</servlet-container>
Root Cause
- This issue is a regression issue caused by Content from github.com is not included.this fix PR#5385, which has been incorporated in the upstream mojara 4.0.6+. This issue will be fixed in the upstream mojarra 4.0.10+ by Content from github.com is not included.PR#5544)
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.