Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2836

HtmlResponseWriterImpl does not check if a CDATA section is already opened when writing the content of a script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • JSR-252
    • None

    Description

      Hi,

      When the default response writer writes a script, it includes CDATA tags around the body. If the script is being written inside another CDATA section for some reason (Primefaces does this in its partial response), then invalid XML is created.

      I attach patch for the fix to be reviewed, before I commit something not quite right again and we can discuss. Basically, a simple boolean is used to check if a CDATA is already open or not.

      Attachments

        1. MUFACES-2836.patch
          3 kB
          Bruno Aranda

        Issue Links

          Activity

            People

              bruno_dev Bruno Aranda
              bruno_dev Bruno Aranda
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: