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

https://gitlab.com/-/ide/project/robs-pg/original-repository/edit/feature/my-awesome-new-feature/readme.md

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

https://gitlab.com/-/ide/project/robs-pg/original-repository/edit/feature/my-awesome-new-feature/readme.md

leads to an error

https://gitlab.com/-/ide/project/robs-pg/original-repository/edit/feature%2Fmy-awesome-new-feature/readme.md

works fine!

Edited May 17, 2018 by Ghost User
Assignee Loading
Time tracking Loading