Browsing Directory Names with Space Fails with java.net.URISyntaxException Exception

Miscellaneous

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Stash reports a similar exception when browsing folders with a space in their name

Caused by: java.net.URISyntaxException: Illegal character in path at index 86: <Path to Folder>

Cause

This is due to the proxy server not configured correctly for URL encoding.

Resolution

Test without the proxy to confrm it't related to the proxy configuration. Ensure all steps listed in the Stash Integration with Apache HTTP Server have been completed successfully, specially the ProxyPass and ProxyPassReverse directives. If using mod_jk, add the following option to your Apache mod_jk configuration:

 

<Connector port="8009" protocol="AJP/1.3" URIEncoding="UTF-8"/>

JkOptions +ForwardURICompatUnparsed
Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.