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

Confluence UI shows garbled or corrupt text on CAPTCHA, macros and/or diagrams due to missing fonts in Linux

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: High High
    • None
    • 6.2.1, 6.3.4, 6.4.0, 6.5.2, 6.6.0
    • Server - Platform

      Macro header shows garbled text and weird symbols in Linux. Captcha appears warped and unreadable.

      Environment
      1. Linux distributions, especially RedHat (RHEL)  and CentOS
      2. Confluence v6 and above
      Steps to reproduce
      1. Insert any macro having a title, like the Panel Macro
      Expected Behavior

      Macro header (the name of the macro) renders properly

      Actual Behavior

      Strange characters appear in place of the macro name.

      Workaround
      1. Stop Confluence
      2. Make one or both of the following changes:
      3. Rebuild the font cache by using the following command:
        fc-cache -s
        
      4. Clear the plugin cache as described at How to clear Confluence plugins cache
      5. Rebuild the content index as described at How to Rebuild the Content Indexes From Scratch on Confluence Server
      6. Start Confluence
      7. Clear browser cache and verify fonts are displayed correctly
      Notes

      Confluence requires some fonts to work in Linux distributions that are not included in the installation package or in the documentation as a requirement.

      In some cases, the workaround also works for file previews such as Office files and PDF.

        1. macro-garbled.png
          28 kB
          Zulfarhan Zakaria

            [CONFSERVER-54067] Confluence UI shows garbled or corrupt text on CAPTCHA, macros and/or diagrams due to missing fonts in Linux

            Ahmad Faridi made changes -
            Description Original: Macro header shows garbled text and weird symbols in Linux. Captcha appears warped and unreadable.

            h6. Environment
             # Linux distributions, especially RedHat (RHEL)  and CentOS
             # Confluence v6 and above

            h6. Steps to reproduce
             # Insert any macro having a title, like the Panel Macro

            h6. Expected Behavior
            Macro header (the name of the macro) renders properly

            h6. Actual Behavior
            Strange characters appear in place of the macro name.

            !macro-garbled.png|thumbnail!

            h6. Workaround
            # Stop Confluence
            # Make one or both of the following changes:
            #* Uninstall lyx-fonts package (Lyx/MathML fonts - A collection of Math symbol fonts for lyx) if it is installed on the server
            #* Ensure the following fonts are installed:
            {code:borderStyle=solid}
            yum install ghostscript
            yum install dejavu-fonts-common
            yum install dejavu-sans-fonts
            yum install dejavu-sans-mono-fonts
            yum install motif
            {code}
             (!) some versions of ghostscript package can be affected by security vulnerability CVE-2018-16509 discovered in September 2018.

            for more details see

             https://security-tracker.debian.org/tracker/CVE-2018-16509
             https://access.redhat.com/security/cve/cve-2018-16509
            https://www.exploit-db.com/exploits/45369/

            # Rebuild the font cache by using the following command:
            {code:borderStyle=solid}
            fc-cache -s
            {code}
            # Clear the plugin cache as described at [How to clear Confluence plugins cache|https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html]
            # Rebuild the content index as described at [How to Rebuild the Content Indexes From Scratch on Confluence Server|https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html]
            # Start Confluence
            # Clear browser cache and verify fonts are displayed correctly

            h6. Notes
            Confluence requires some fonts to work in Linux distributions that are not included in the installation package or in the documentation as a requirement.

            In some cases, the workaround also works for file previews such as Office files and PDF.
            New: Macro header shows garbled text and weird symbols in Linux. Captcha appears warped and unreadable.
            h6. Environment
             # Linux distributions, especially RedHat (RHEL)  and CentOS
             # Confluence v6 and above

            h6. Steps to reproduce
             # Insert any macro having a title, like the Panel Macro

            h6. Expected Behavior

            Macro header (the name of the macro) renders properly
            h6. Actual Behavior

            Strange characters appear in place of the macro name.

            !macro-garbled.png|thumbnail!
            h6. Workaround
             # Stop Confluence
             # Make one or both of the following changes:
             ** Uninstall lyx-fonts package (Lyx/MathML fonts - A collection of Math symbol fonts for lyx) if it is installed on the server
             ** Ensure the following fonts are installed:
            {code:java}
            yum install ghostscript
            yum install dejavu-fonts-common
            yum install dejavu-sans-fonts
            yum install dejavu-sans-mono-fonts
            yum install motif
            {code}
            (!) some versions of ghostscript package can be affected by security vulnerability CVE-2018-16509 discovered in September 2018.
            for more details see
            ** [https://security-tracker.debian.org/tracker/CVE-2018-16509]
            ** [https://access.redhat.com/security/cve/cve-2018-16509]
            ** [https://www.exploit-db.com/exploits/45369/]
             # Rebuild the font cache by using the following command:
            {code:java}
            fc-cache -s
            {code}
             # Clear the plugin cache as described at [How to clear Confluence plugins cache|https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html]
             # Rebuild the content index as described at [How to Rebuild the Content Indexes From Scratch on Confluence Server|https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html]
             # Start Confluence
             # Clear browser cache and verify fonts are displayed correctly

            h6. Notes

            Confluence requires some fonts to work in Linux distributions that are not included in the installation package or in the documentation as a requirement.

            In some cases, the workaround also works for file previews such as Office files and PDF.
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2903846 ] New: CONFSERVER Bug Workflow v4 [ 2998392 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2793428 ] New: JAC Bug Workflow v3 [ 2903846 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            GMK made changes -
            Description Original: Macro header shows garbled text and weird symbols in Linux. Captcha appears warped and unreadable.

            h6. Environment
             # Linux distributions, especially RedHat (RHEL)  and CentOS
             # Confluence v6 and above

            h6. Steps to reproduce
             # Insert any macro having a title, like the Panel Macro

            h6. Expected Behavior
            Macro header (the name of the macro) renders properly

            h6. Actual Behavior
            Strange characters appear in place of the macro name.

            !macro-garbled.png|thumbnail!

            h6. Workaround
            # Stop Confluence
            # Make one or both of the following changes:
            #* Uninstall lyx-fonts package (Lyx/MathML fonts - A collection of Math symbol fonts for lyx) if it is installed on the server
            #* Ensure the following fonts are installed:
            {code:borderStyle=solid}
            yum install ghostscript
            yum install dejavu-fonts-common
            yum install dejavu-sans-fonts
            yum install dejavu-sans-mono-fonts
            yum install motif
            {code}
             (!) some versions of ghostscript package can be affected by security vulnerability CVE-2018-16509 discovered in September 2019.

            for more details see

             https://security-tracker.debian.org/tracker/CVE-2018-16509
             https://access.redhat.com/security/cve/cve-2018-16509
            https://www.exploit-db.com/exploits/45369/

            # Rebuild the font cache by using the following command:
            {code:borderStyle=solid}
            fc-cache -s
            {code}
            # Clear the plugin cache as described at [How to clear Confluence plugins cache|https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html]
            # Rebuild the content index as described at [How to Rebuild the Content Indexes From Scratch on Confluence Server|https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html]
            # Start Confluence
            # Clear browser cache and verify fonts are displayed correctly

            h6. Notes
            Confluence requires some fonts to work in Linux distributions that are not included in the installation package or in the documentation as a requirement.

            In some cases, the workaround also works for file previews such as Office files and PDF.
            New: Macro header shows garbled text and weird symbols in Linux. Captcha appears warped and unreadable.

            h6. Environment
             # Linux distributions, especially RedHat (RHEL)  and CentOS
             # Confluence v6 and above

            h6. Steps to reproduce
             # Insert any macro having a title, like the Panel Macro

            h6. Expected Behavior
            Macro header (the name of the macro) renders properly

            h6. Actual Behavior
            Strange characters appear in place of the macro name.

            !macro-garbled.png|thumbnail!

            h6. Workaround
            # Stop Confluence
            # Make one or both of the following changes:
            #* Uninstall lyx-fonts package (Lyx/MathML fonts - A collection of Math symbol fonts for lyx) if it is installed on the server
            #* Ensure the following fonts are installed:
            {code:borderStyle=solid}
            yum install ghostscript
            yum install dejavu-fonts-common
            yum install dejavu-sans-fonts
            yum install dejavu-sans-mono-fonts
            yum install motif
            {code}
             (!) some versions of ghostscript package can be affected by security vulnerability CVE-2018-16509 discovered in September 2018.

            for more details see

             https://security-tracker.debian.org/tracker/CVE-2018-16509
             https://access.redhat.com/security/cve/cve-2018-16509
            https://www.exploit-db.com/exploits/45369/

            # Rebuild the font cache by using the following command:
            {code:borderStyle=solid}
            fc-cache -s
            {code}
            # Clear the plugin cache as described at [How to clear Confluence plugins cache|https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html]
            # Rebuild the content index as described at [How to Rebuild the Content Indexes From Scratch on Confluence Server|https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html]
            # Start Confluence
            # Clear browser cache and verify fonts are displayed correctly

            h6. Notes
            Confluence requires some fonts to work in Linux distributions that are not included in the installation package or in the documentation as a requirement.

            In some cases, the workaround also works for file previews such as Office files and PDF.
            GMK made changes -
            Description Original: Macro header shows garbled text and weird symbols in Linux. Captcha appears warped and unreadable.

            h6. Environment
             # Linux distributions, especially RedHat (RHEL)  and CentOS
             # Confluence v6 and above

            h6. Steps to reproduce
             # Insert any macro having a title, like the Panel Macro

            h6. Expected Behavior
            Macro header (the name of the macro) renders properly

            h6. Actual Behavior
            Strange characters appear in place of the macro name.

            !macro-garbled.png|thumbnail!

            h6. Workaround
            # Stop Confluence
            # Make one or both of the following changes:
            #* Uninstall lyx-fonts package (Lyx/MathML fonts - A collection of Math symbol fonts for lyx) if it is installed on the server
            #* Ensure the following fonts are installed:
            {code:borderStyle=solid}
            yum install ghostscript
            yum install dejavu-fonts-common
            yum install dejavu-sans-fonts
            yum install dejavu-sans-mono-fonts
            yum install motif
            {code}
            # Rebuild the font cache by using the following command:
            {code:borderStyle=solid}
            fc-cache -s
            {code}
            # Clear the plugin cache as described at [How to clear Confluence plugins cache|https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html]
            # Rebuild the content index as described at [How to Rebuild the Content Indexes From Scratch on Confluence Server|https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html]
            # Start Confluence
            # Clear browser cache and verify fonts are displayed correctly

            h6. Notes
            Confluence requires some fonts to work in Linux distributions that are not included in the installation package or in the documentation as a requirement.

            In some cases, the workaround also works for file previews such as Office files and PDF.
            New: Macro header shows garbled text and weird symbols in Linux. Captcha appears warped and unreadable.

            h6. Environment
             # Linux distributions, especially RedHat (RHEL)  and CentOS
             # Confluence v6 and above

            h6. Steps to reproduce
             # Insert any macro having a title, like the Panel Macro

            h6. Expected Behavior
            Macro header (the name of the macro) renders properly

            h6. Actual Behavior
            Strange characters appear in place of the macro name.

            !macro-garbled.png|thumbnail!

            h6. Workaround
            # Stop Confluence
            # Make one or both of the following changes:
            #* Uninstall lyx-fonts package (Lyx/MathML fonts - A collection of Math symbol fonts for lyx) if it is installed on the server
            #* Ensure the following fonts are installed:
            {code:borderStyle=solid}
            yum install ghostscript
            yum install dejavu-fonts-common
            yum install dejavu-sans-fonts
            yum install dejavu-sans-mono-fonts
            yum install motif
            {code}
             (!) some versions of ghostscript package can be affected by security vulnerability CVE-2018-16509 discovered in September 2019.

            for more details see

             https://security-tracker.debian.org/tracker/CVE-2018-16509
             https://access.redhat.com/security/cve/cve-2018-16509
            https://www.exploit-db.com/exploits/45369/

            # Rebuild the font cache by using the following command:
            {code:borderStyle=solid}
            fc-cache -s
            {code}
            # Clear the plugin cache as described at [How to clear Confluence plugins cache|https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html]
            # Rebuild the content index as described at [How to Rebuild the Content Indexes From Scratch on Confluence Server|https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html]
            # Start Confluence
            # Clear browser cache and verify fonts are displayed correctly

            h6. Notes
            Confluence requires some fonts to work in Linux distributions that are not included in the installation package or in the documentation as a requirement.

            In some cases, the workaround also works for file previews such as Office files and PDF.
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2735118 ] New: JAC Bug Workflow v2 [ 2793428 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2470128 ] New: JAC Bug Workflow [ 2735118 ]
            George Lipatov made changes -
            Remote Link Original: This issue links to "Page (Bulldog)" [ 372613 ]
            George Lipatov made changes -
            Remote Link New: This issue links to "Page (Bulldog)" [ 372613 ]

              glipatov George Lipatov
              mzakaria@atlassian.com Zulfarhan Zakaria (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              22 Start watching this issue

                Created:
                Updated:
                Resolved: