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

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

      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

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

              qpham@atlassian.com Quan Pham
              yokamoto Yuki Okamoto (Inactive)
              Affected customers:
              40 This affects my team
              Watchers:
              46 Start watching this issue

                Created:
                Updated:
                Resolved: