[jira] [Created] (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]>
Kyle Stiemann created PLUTO-657:
-----------------------------------

             Summary: 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
             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.