]
Martin Stefanko updated WFLY-12336:
-----------------------------------
Affects Version/s: 17.0.1.Final
Mojarra 4596 - Scripts with CDATA cause "empty response"
error on Ajax render
-----------------------------------------------------------------------------
Key: WFLY-12336
URL:
https://issues.jboss.org/browse/WFLY-12336
Project: WildFly
Issue Type: Bug
Components: JSF
Affects Versions: 17.0.1.Final
Reporter: Martin Stefanko
Assignee: Teresa Miyar Gil
Priority: Major
Labels: downstream_dependency
Attachments: reproducer2.war
Fix required for Mojarra Issue 4388 / Scripts with CDATA cause "empty response"
error on Ajax render
Ref:
https://github.com/javaserverfaces/mojarra/issues/4388
--
The RenderKitImpl (com.sun.jsf-impl) class is returning a wrong configured ResponseWriter
on partial responses. It is breaking the xhtml when it contains a javascript with CDATA;
the final xhtml has a bad closed nested CDATAs.
The JSF 2.2.15 RenderKitImpl:
https://github.com/javaserverfaces/mojarra/blob/2.2.15/jsf-ri/src/main/ja...
The JSF 2.3.5 RenderKitImpl:
https://github.com/javaserverfaces/mojarra/blob/2.3.5/jsf-ri/src/main/jav...
The issue was introduced with the following commits:
https://github.com/javaserverfaces/mojarra/commit/8a5a562e129a31f3655de86...
https://github.com/javaserverfaces/mojarra/commit/ee3671db95986395e3a40a5...
The issue is fixed on JSF 2.3.9 reverting those above commits.
https://github.com/javaserverfaces/mojarra/issues/4358#issuecomment-44009...
Apply:
https://github.com/javaserverfaces/mojarra/commit/cebcd9bd41f562ec02450d5...
https://github.com/javaserverfaces/mojarra/commit/954773aa256b68e744ae917...
Final class:
https://github.com/javaserverfaces/mojarra/blob/MOJARRA_2_3X_ROLLING/jsf-...