Build trigger webhook fails for ref with "." in it
Summary
Attempting to use the build trigger webhook with a branch name as ref fails if the branch has "." in the name.
Steps to reproduce
I've got two branches at the same commit, the original one has a "." in the branch and a renamed one with '.' replaced with '-'
https://gitlab.com/api/v3/projects/2859544/ref/cm-14.1-anl/trigger/builds
https://gitlab.com/api/v3/projects/2859544/ref/cm-14-1-anl/trigger/builds
What is the current bug behavior?
The build trigger with '.' in the branch name returns 404 missing when a branch exists with that name.
What is the expected correct behavior?
The renamed branch returns 405 Not Allowed as expected, the original branch should also return this.
Relevant logs and/or screenshots
Check both urls listed above in browser/curl
Output of checks
This bug happens on GitLab.com
Possible fixes
Unknown