[jboss-jira] [JBoss JIRA] (WFLY-12336) Mojarra 4596 - Scripts with CDATA cause "empty response" error on Ajax render
Martin Stefanko (Jira)
issues at jboss.org
Wed Jul 31 04:01:01 EDT 2019
[ https://issues.jboss.org/browse/WFLY-12336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Stefanko updated WFLY-12336:
-----------------------------------
Labels: downstream_dependency (was: )
> 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/java/com/sun/faces/renderkit/RenderKitImpl.java
> The JSF 2.3.5 RenderKitImpl: https://github.com/javaserverfaces/mojarra/blob/2.3.5/jsf-ri/src/main/java/com/sun/faces/renderkit/RenderKitImpl.java
> The issue was introduced with the following commits:
> https://github.com/javaserverfaces/mojarra/commit/8a5a562e129a31f3655de86cfeb79c33d3eaa1f8
> https://github.com/javaserverfaces/mojarra/commit/ee3671db95986395e3a40a591c52522421b25bf2
> The issue is fixed on JSF 2.3.9 reverting those above commits.
> https://github.com/javaserverfaces/mojarra/issues/4358#issuecomment-440093385
> Apply:
> https://github.com/javaserverfaces/mojarra/commit/cebcd9bd41f562ec02450d55bf0c3e2b1b287607
> https://github.com/javaserverfaces/mojarra/commit/954773aa256b68e744ae9178013faccfb05ca204
> Final class:
> https://github.com/javaserverfaces/mojarra/blob/MOJARRA_2_3X_ROLLING/jsf-ri/src/main/java/com/sun/faces/renderkit/RenderKitImpl.java
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list