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
        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

          Form Name

            [CONFSERVER-43207] JIRA Macro couldn't render issues when the filter contains multi-byte characters

            Quan Pham made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 511822 ]
            Niraj Bhawnani made changes -
            Labels Original: 74 affects-server bugfix encoding i18n-bug samurai warranty New: 74 74-lo affects-server bugfix encoding i18n-bug samurai warranty
            Niraj Bhawnani made changes -
            Link New: This issue incorporates CONFSERVER-59426 [ CONFSERVER-59426 ]

            Minh Tran added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 7.3.2
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Minh Tran added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.3.2 Upgrade now or check out the Release Notes to see what other issues are resolved.
            Minh Tran made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS Original: 36 New: 28
            SET Analytics Bot made changes -
            UIS Original: 28 New: 36
            Bugfix Automation Bot made changes -
            Support reference count Original: 48 New: 49
            Matthew Saxby (Inactive) made changes -
            Labels Original: 74 affects-server bugfix encoding i18n-bug warranty New: 74 affects-server bugfix encoding i18n-bug samurai warranty
            Matthew Saxby (Inactive) made changes -
            Labels Original: affects-server bugfix encoding i18n-bug warranty New: 74 affects-server bugfix encoding i18n-bug warranty

              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: