Unmappable Character while trying to add GitBlit-Repository

While trying to add a GitBlit-Repository an error occured:

com.xiplink.jira.git.exception.OperationException: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters:
/var/atlassian/application-data/jira/data/git-plugin/1_base/refs/heads/TD-XXXX_-_YYY]_Unterstützung_InterComm.lock

java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters:
/var/atlassian/application-data/jira/data/git-plugin/1_base/refs/heads/TD-XXXX_-_YYY]_Unterstützung_InterComm.lock

The original ref in GitBlit looks like TD-XXXX - [YYY] Unterstützung InterComm.lock (Without the underscores and with an additional opening bracket)

Other git clients (windows/linux) have no problems with this repository.
Is it possible that there is an encoding problem on the Jira-Server-Installation?

We are using Version 2.12.4 to evaluate this plugin.

2 answers

1 accepted

I think you're running into a problem that's fairly common with a lot of Tomcat based apps when there is no language set (or set to something the JVM can't use). 

Ultimately, you can fix this by adding:

export LANG = en_US.UTF8

near the top of setenv.sh and restarting Jira.

 

You can read more detail about this kind of error here:
https://stackoverflow.com/questions/39185613/java-nio-file-invalidpathexception-malformed-input-or-input-contains-unmappable
http://www.zhijun.co.uk/blog/solution-for-invalidpathexception-malformed-input-in-tomcat
https://jira.atlassian.com/browse/BSERV-9017
https://github.com/elastic/elasticsearch/issues/8548

Thanks. That helped!

Hi @Anja Prelle

Thank you for posting this. I'm the product manager for the Git Integration for Jira add-on.

Can you contact us at support@bigbrassband.com so we can gather a few more items about this error?

In your initial email - please let us know if you are using Jira Server or Jira Cloud.

Cheers!

Adam

Thanks for your support.

The solution @Mark L. Smithsuggested worked for us.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

818 views 2 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you