Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-657

pluto fails to add head scripts with CDATA

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • portlet container
    • None

    Description

      To reproduce this issue, create a portlet with the following 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>");
      }
      

      If the bug still exists an exception will appear in the logs and the script will not appear in the head section.

      Attachments

        Activity

          People

            msnicklous Scott Nicklous
            stiemannkj1 Kyle Stiemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: