Gitlab api cannot resolve branch with slash in it
Summary
Querying gitlab API with html special characters in it will give a page not found
Steps to reproduce
With character that needs encoding
- Create a branch with a slash in it, i.e.
release/1.0
- Resolve the branch via the api
gitlab.com/gitlab-org/gitlab-ee/repository/branches/release%2F1.0?private_token=TOKEN
- > 404
Withouth character that needs encoding
- Create a branch without special character in it, i.e.
release-1.0
- Resolve the branch via the api
gitlab.com/gitlab-org/gitlab-ee/repository/branches/release-1.0?private_token=TOKEN
- > Resolved
However resolving all branches and doing a search will give the branch
- Resolve the branch via the api
gitlab.com/gitlab-org/gitlab-ee/repository/branches
- Searching for "release/1.0" will give the correct branch
Expected behavior
Would expect to have the branch showing up as well with the special character in it
Actual behavior
Says page not found