[jira] [Closed] (PLUTO-657) pluto fails to add head scripts with CDATA

"Kyle Stiemann (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/PLUTO-657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kyle Stiemann closed PLUTO-657.
-------------------------------
    Resolution: Fixed

Fixed by [5bd6d58142c8a0a2f7140bb82e6043fa39fead8c|https://github.com/apache/portals-pluto/commit/5bd6d58142c8a0a2f7140bb82e6043fa39fead8c].

> pluto fails to add head scripts with CDATA
> ------------------------------------------
>
>                 Key: PLUTO-657
>                 URL: https://issues.apache.org/jira/browse/PLUTO-657
>             Project: Pluto
>          Issue Type: Bug
>          Components: portlet container
>    Affects Versions: 3.0.0
>            Reporter: Kyle Stiemann
>            Assignee: Scott Nicklous
>            Priority: Minor
>             Fix For: 3.0.1
>
>
> To reproduce this issue, create a portlet with the following code:
> {code}
> public void renderHeaders(HeaderRequest headerRequest, HeaderResponse headerResponse) throws PortletException,
> 		IOException {
>     headerResponse.addDependency("myCDATAScript", null, null,
>         "<script type=\"text/javascript\">" +
>             "/* <![CDATA[ */ if (0 < 1) { console.log('0 is less than 1'); } // ]]>" +
>         "</script>");
> }
> {code}
> If the bug still exists an exception will appear in the logs and the script will not appear in the {{head}} section.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.