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

XML content not encoded in XML output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 3.0.3
    • None

    Description

      I happened to have an issue whose description contained XML code, a it was explaining an XML related issue. I exported the JIRA database to XML, and when editing it, my XML editor advised me it was not well formed. I figured out the problem was because it was interpreting description content like CDATA tags as real XML content. You'll notice how HTML codes are escaped (like &reg etc.) so as not to confuse HTML parsers. The same should have been done for XML-like text before dumping to XML output. If I hadn't noticed this, I probably would have gotten an error importing my XML backup into JIRA. I was able to fix this by editing the data in my XML file, but I was just lucky my editor flagged this and I was able to catch this before trying to upload. JIRA should be able to encode and decode XML-like content. I can't expect users won't enter XML code into their issue description. In fact.. I could do it right here which would render your XML backups problematic too .. but I won't

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6e88f3fc96e7 Neal Applebaum
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: