WebIDE and Branches with slashes does not work
Summary
Trying to open the WebIDE on a branch that got a slash in it (quite common if you are using the Gitflow workflow) results in an
Error loading branch data. Please try again.
Steps to reproduce
This can be done completely using the web frontend (no need to use a git client at all)
1.) In an existing repository, create a branch with a / in it (for example feature/my-awesome-new-feature)
2.) Open the WebIDE using the designated button in the frontend.
The WebIDE opens and the error message above will be displayed.
Example Project
What is the current bug behavior?
As described in the summary, an error message pops up, containing
Error loading branch data. Please try again.
What is the expected correct behavior?
The WebIDE should open on the correct branch / file.
Relevant logs and/or screenshots
.
Output of checks
.
Results of GitLab environment info
Using gitlab.com, but happens on 10.7.3-ee, too.
Results of GitLab application Check
Possible fixes
From my point of view the URL is not correctly encoded, while
leads to an error
works fine!