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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

181 views 0 5
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