Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-43207

JIRA Macro couldn't render issues when the filter contains multi-byte characters

    XMLWordPrintable

    Details

      Description

      Summary

      JIRA Macro couldn't render issues when the filter contains multi-byte characters.

      Environment

      • Confluence 5.10.1
      • JIRA 7.1.9

      Steps to Reproduce

      1. Install vanilla JIRA 7.1.9
      2. Create a project
      3. Create two issues as follows
        1. Create an issue with Japanese summary (The summary is "テスト".)
        2. Create another issue with English summary (The summary is "test".)
      4. Install vanilla Confluence 5.10.1 and integrate it with the JIRA
      5. Create a space and a page
      6. Use JIRA Macro with the following two types of filters
        1. summary ~ "テスト"
        2. summary ~ "test"
      7. Check if the macro works fine in the preview dialog

      Expected Results

      Even if we use Japanese characters in the filter, the issue should be rendered in the page as it works fine with the other filter which contains only English characters.

      Actual Results

      When we use Japanese characters in the filter, the issue wasn't rendered in the page correctly.

      Notes

      • We can use the filter (JQL) in JIRA to find the issue
      • The filter which contains Japanese characters also works fine in the macro preview dialog as I mentioned in the above image
      • You can reproduce this bug not only with Japanese characters but also Russian, Korean, Chinese characters (any muti-byte characters)
      • This bug *WASN'T seen on Confluence 5.9.12 with JIRA 7.1.9

      Workaround

      1. Stop Confluence
      2. Add the following line into the bin/setenv.sh file
        CATALINA_OPTS="-Dfile.encoding=UTF-8 ${CATALINA_OPTS}"
        
      3. Start Confluence

        Attachments

        1. CONF-43207.pem
          2 kB
        2. english_filter.png
          english_filter.png
          302 kB
        3. issues.png
          issues.png
          235 kB
        4. japanese_filter.png
          japanese_filter.png
          297 kB
        5. preview.png
          preview.png
          296 kB
        6. Screen Shot 2016-07-20 at 1.16.53 PM.png
          Screen Shot 2016-07-20 at 1.16.53 PM.png
          84 kB

          Issue Links

            Activity

              People

              Assignee:
              qpham@atlassian.com Quan Pham
              Reporter:
              yokamoto Yuki Okamoto (Inactive)
              Votes:
              40 Vote for this issue
              Watchers:
              48 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: