eh3. Issue Summary
If you upgrade tomcat to version 9.0.14 - 9.0.19, emoticons are broken. Both emoticons on pages, and the emoticon browser do not load.
- Confluence 6.13.4, tomcat 9.0.14
- Confluence 6.15.3 tomcat 9.0.17
java -cp catalina.jar org.apache.catalina.util.ServerInfo
In 6.15.2 the output looks like:
Server version: Apache Tomcat/9.0.12
Server built: Sep 4 2018 22:13:41 UTC
Server number: 22.214.171.124*
- Upgrade tomcat to 9.0.14 following directions here
- Step 2
Edit a page and load the emoticon browser and observe that the images don't load
Emoticon images should load
emoticon images dont load
If you inspect a HAR file, you will see that in tomcat 9.0.13 and earlier, the content-type for the image is image/svg+xml;charset=UTF-8
After upgrading to tomcat 9.0.14 the content-type is text/html;charset=UTF-8
I checked the release notes for Tomcat 9.0.14, and it looks like the issue is caused by this change: "The default Servlet should not override a previously set content-type"
(Optional - If Necessary)
We have since released Confluence 6.15.4 which contains a fix for this issue. We recommend upgrading immediately if you're impacted by the issue.
We no longer recommend the below workaround to downgrade Tomcat to 9.0.12, but it is available if required:
- Download the Tomcat 9.0.12 lib directory Tomcat-9-0-12-lib.zip , attached to this issue (alternatively you can download and extract the [apache-tomcat-9.0.12.zip or apache-tomcat-9.0.12.tar.gz|https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.12/bin/] from the Apache archives).
- Stop Confluence
- Back up your installation directory.
- Remove the contents of your existing <install-directory>/lib directory.
- Copy the contents of the downloaded lib directory to your existing <install-directory>/lib directory.
- Restart Confluence
- Go to General Configuration > System Information and confirm Confluence is now using Apache Tomcat 9.0.12.
- Edit a page and confirm that you can successfully insert an emoticon.
Your browser may have cached the broken assets, so perform a hard refresh to confirm the fix has worked. If you suspect your users may also have cached broken assets, make a small change to your site colour scheme (for example change a colour and then change it back).