Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-54431

JIRA issues Macro error encoding UTF-8 to "Epic name" with special character

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 5.6.1, 6.4.3, 8.5.5, 8.5.6
    • Macros - Jira Macros
    • JIRA 7.6.0 - UTF-8 Português(BR)
      CONFLUENCE 5.6.1 - UTF-8 Português(BR)

    Description

      Summary

      Special characters are not rendered correctly when they are present in Epic Name column of Jira Issues Macro.

      Steps to Reproduce

      1. In page confluence add Jira macro
      2. in Jira Macro add the Epic name Column (Epic Name should include characters like 'ç', 'õ', 'á' ...)
      3. Save Jira issues macro for confluence page

      Expected Results

      Epic name text is rendered correctly:

      Actual Results

      In view mode of the Confluence page the Jira issue macro show epic name column with an encoding problem:

      Notes

      When analysing the browser developers tool content, we notice that the both the response and preview from /rest/jiraanywhere/1.0/jira/clientIds call has the data correctly encoded:

      • Response:
        \\u003ca href\\u003d\\\"http://quicksilver/jira/browse/GHS-30?src\\u003dconfmacro\\\"\\u003e\\n                                            solicitações de usuários\\n                                        \\u003c/a\\u003e\\n
        
      • Preview from /rest/jiraanywhere/1.0/jira/clientIds:
        class="icon" /></a>↵                                                    …src=confmacro">↵                                            solicitações de usuários↵                                        </a>
        

      Which means that only the rendering process of JIM is breaking the encoding.

      Workaround

      1. Sort table by clicking on any column name (obs.: /rest/jiraanywhere/1.0/jira/renderTable is called)
      2. Reduce columns to display to key, summary and epic name

      Both workarounds result in the correct rendering of the special characters:

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dd6d2751d42e jhonbenner
              Votes:
              25 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

                Created:
                Updated: