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

XML view does not escape icon URLs

    XMLWordPrintable

Details

    Description

      This seems to be a regression as a result of JRA-15876.

      The icon URL used to be escaped before being output into the XML view. Now it is not.

      This causes the XML view to render incorrectly when the URL has certain characters in it e.g. ampersand. It was observed that if viewing the Search Request results as an XML view, the result source would be complete, however the view of that source in Firefox would be truncated (or not present at all).

      It can also affect the JIRA Issues Macro in Confluence as the macro will be unable to parse the XML, e.g.

      2009-09-14 13:56:30,058 WARN [http-8080-4] [confluence.extra.jira.JiraIssuesServlet] doGet An IO Exception has been encountered: Error on line 188: The reference to entity "modificationDate" must end with the ';' delimiter.
       -- url: /plugins/servlet/issue-retriever | userName: admin | referer: http://localhost:8080/display/ds/list
      java.io.IOException: Error on line 188: The reference to entity "modificationDate" must end with the ';' delimiter.
      	at com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.getChannelElement(DefaultJiraIssuesManager.java:163)
      	at com.atlassian.confluence.extra.jira.DefaultJiraIssuesManager.retrieveXML(DefaultJiraIssuesManager.java:192)
      	at com.atlassian.confluence.extra.jira.JiraIssuesServlet.getResultJson(JiraIssuesServlet.java:165)
      

      Attachments

        Activity

          People

            mtokar Michael Tokar
            mtokar Michael Tokar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: