Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot upload attachments with special characters - "Malformed characters" error

Kamil Beer
Contributor
September 27, 2023

Hi,

after a recent Jira Software upgrade from 9.6 to 9.10, users on my Jira instance are unable to upload attachments containing special characters like č, ř, š.

When they try to upload such an attachment, they see the following message:

"File "ÁBCD.DOC" was not uploaded

Could not save attachment to storage: Malformed input or input contains unmappable characters: ÁBCD.DOC"

What could be the reason for this? I already tried searching around and found that one of the solutions is to change the starting parameters to look like -

JVM_SUPPORT_RECOMMENDED_ARGS="-Datlasssian.plugins.enable.wait=300 -Dfile.encoding=utf-8 -Dsun.jnu.encoding=UTF-8"

However I found that newer versions of Java ignore these parameters. What can be done about this?

Thanks!

2 answers

0 votes
Михаил Малиновкин
October 22, 2018

Hi there,

I want my container will be stateless, without any utilities from host station.

When i build container i use sed utility, add maxdays tomcat parameter and edit server.xml

RUN sed -i -r 's#className=\"org.apache.catalina.valves.AccessLogValve\"#className=\"org.apache.catalina.valves.AccessLogValve\" maxDays=\"7\"#' ${JIRA_INSTALL_DIR}/conf/server.xml \ && sed -i -e 's/= catalina./= catalina.\n1catalina.org.apache.juli.AsyncFileHandler.maxDays = 14/' ${JIRA_INSTALL_DIR}/conf/logging.properties \ && sed -i -e 's/= localhost./= localhost.\n2localhost.org.apache.juli.AsyncFileHandler.maxDays = 14/' ${JIRA_INSTALL_DIR}/conf/logging.properties \ && sed -i -e 's/= manager./= manager.\n3manager.org.apache.juli.AsyncFileHandler.maxDays = 14/' ${JIRA_INSTALL_DIR}/conf/logging.properties \ && sed -i -e 's/= host-manager./= host-manager.\n4host-manager.org.apache.juli.AsyncFileHandler.maxDays = 14/' ${JIRA_INSTALL_DIR}/conf/logging.properties

After that i can pull and start my container on any station.

0 votes
Moga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 17, 2018

Hi there,

You can use logrotate to do what you are looking for. You can use this article as a reference.

Best Regards,
Mogavenasan

Suggest an answer

Log in or Sign up to answer