Unable to find project by name using rest API when there is slash in the project name

Current rest API expects URI to be like : <root>/rest/projects/name:{project name}/<details> and if project name has '/' in its name, for example 'Banana/Banana', URI became <root>/rest/projects/name:Banana/Banana/<details> and only first 'Banana' is considered as a name. So the project can not be found. This also causes whole URI became invalid, because 2nd 'Banana' is not a valid 'resource'.

Other special characters, for example whitespace or ampersand, are processed correctly with percent-encoding. However when I send encoded slash (%2F) I get 'Bad request' in response.

So is there a way to query project by name if there is a slash in it?


1 comment
Comment actions Permalink

Hi Aleksandr,

Thank you for the report. This is a known limitation of the default Tomcat configuration. Please vote for the issue https://youtrack.jetbrains.com/issue/TW-19360 and try the suggested workaround.


Please sign in to leave a comment.