Editor goes back to blank page when adding image from the attachments file

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

When adding image from the attachment file in a page using the following method:

  • Added image as attachment to page.

  • Adding image to a page by typing '!' and then selecting image from dropdown

Editor will go back to blank page. There is no information or error message in the logs. However, drag and drop image file appears to work fine.

Diagnosis

The following appears in the atlassian-confluence.log under System Information :

1 fileSystemEncoding = en_GB.utf-8

Also in application.xml :

1 <file.encoding>en_GB.utf-8</file.encoding>

In Linux :

Run the command su -l -c locale confluence to check the current locale settings in a terminal environment.

Cause

Caused by the JVM file.encoding is set to en_GB.utf8.

Solution

Workaround

Changing JVM encoding to -Dfile.encoding=UTF8 by adding the following JVM parameter by editing the line below before the export CATALINA_OPTS parameter:

1 CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF-8"

Refer to the following documentation for details process to configure filesystem encoding:

Related Content

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.