Get the latest release api produces 404 when tag name has / character
Summary
The Get the latest release api produces a 404 when tag name has / character.
This seems be because tag_name is not URL encoded.
Steps to reproduce
- Create a release with tag name containing
/character for examplerelease/1.1.0 - Call the Get the latest release api
Example Project
N/A
What is the current bug behavior?
- Redirect URI is
/projects/:id/releases/release/1.1.0 - Redirect produces a
404
What is the expected correct behavior?
- Redirect URI is
/projects/:id/releases/release%2F1.1.0 - Redirect gets the release
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
/label reproduced on GitLab.com
Possible fixes
URL ecnode tag_name.