API to unprotect a branch giving 404 Not Found error
Summary
I am able to protect branch but not able to unprotect
Steps to reproduce
Protect (Working). curl -s --request POST--header "PRIVATE-TOKEN: " https:///api/v4/projects/:id/protected_branches?name= Unprotect ({"error":"404 Not Found"}) (How one can reproduce the issue - this is very important) curl -s --request DELETE--header "PRIVATE-TOKEN: " https:///api/v4/projects/:id/protected_branches?name=
Example Project
What is the current bug behavior?
(What actually happens) {"error":"404 Not Found"}
What is the expected correct behavior?
Able to unprotect branch (What you should see instead) {"error":"404 Not Found"}
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)