-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
6.2.4, 6.3.3, 6.4.0, 6.4.3, 6.6.1, 6.8.1
-
None
-
22
-
Severity 2 - Major
-
1
-
Summary
Attempting to insert a macro using the { shortcut fails.
Environment
- Red Hat Enterprise Linux (RHEL) 7.4
Steps to Reproduce
- Edit a page
- Attempt to add a macro using the { shortcut
Expected Results
The macro suggestions menu is shown
Actual Results
The following error is displayed in the browser
The below exception is thrown in the atlassian-confluence.log file:
2017-08-24 11:25:44,364 ERROR [http-nio-8090-exec-18] [ContainerBase.[Standalone].[localhost].[/]] log Unhandled exception occurred whilst decorating page -- referer: http://confluence:8090/pages/resumedraft.action?draftId=4096191&draftShareId=ceb30906-49f4-4e30-af94-c6c6c363f1df | url: /plugins/servlet/confluence/placeholder/macro | traceId: b23e4a0f2ec9b8cd | userName: admin java.lang.ArrayIndexOutOfBoundsException: 0 at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75) at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93) at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:359) at sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:350) at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:302) at sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:863) at
Notes
The default font was changed from Utopia to Styx in RHEL 7.4, this is not handled well by the JVM and breaks functionality. For more information see Bug 1484079 – AWT java apps fail to start when stix-fonts is used as sans-serif font
Workaround
- Stop Confluence
- Create /etc/fonts/local.conf
- Paste the following:
<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <alias> <family>serif</family> <prefer><family>Utopia</family></prefer> </alias> <alias> <family>sans-serif</family> <prefer><family>Utopia</family></prefer> </alias> <alias> <family>monospace</family> <prefer><family>Utopia</family></prefer> </alias> <alias> <family>dialog</family> <prefer><family>Utopia</family></prefer> </alias> <alias> <family>dialoginput</family> <prefer><family>Utopia</family></prefer> </alias> </fontconfig>
- Save the file
- Start Confluence
- In some cases, the fonts are not installed and we'll still run into these errors. Use the method appropriate for your distribution to install these fonts, for example:
sudo yum install dejavu-serif-fonts
- In some cases, the fonts are not installed and we'll still run into these errors. Use the method appropriate for your distribution to install these fonts, for example:
- is incorporated by
-
CONFSERVER-54785 Various functions fail when Confluence is installed on RHEL 7.4 due to OS-level font bug
- Long Term Backlog