Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-6550

if text contains certain characters, cdata in xml based on this will be badly formed

    XMLWordPrintable

Details

    Description

      When the string in a field has unusual characters - for example Unicode 0x14 - the XML generated will be malformed & will result in a parseException with any browser set up to handle XML.

      For instance, Apache Derby issue 246
      http://issues.apache.org/jira/browse/DERBY-246?decorator=none&view=rss
      results in the following display:
      XML Parsing Error: not well-formed
      Location: http://issues.apache.org/jira/browse/DERBY-246?decorator=none&view=rss
      Line Number 269, Column 102:
      when viewed using Mozilla (1.7.1)

      Also, trying to parse this with a SAX parser results in this:
      org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x14) was found in the CDATA section.
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)

      Attachments

        1. one_JIRA_ISSUE.txt
          6 kB
        2. one_JIRA_ISSUE.txt2
          0.3 kB
        3. one_JIRA_ISSUE.xml
          10 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              2ee9ba54e712 Myrna van Lunteren
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: