-
Notifications
You must be signed in to change notification settings - Fork 675
"Impossible to destroy object" 405 when attempting to delete project branch #68
Copy link
Copy link
Closed
Description
When attempting to delete a project branch using the CLI I an receiving a 405 response from Gitlab:
$ gitlab project-branch list --project-id=n
name: api
name: master
$ gitlab project-branch delete --project-id=n --name api
Impossible to destroy object (405: )
Using gitlab's webUI to delete the branch is successful.
Failed request to Gitlab from CLI:
10.1.8.30 - - [24/Aug/2015:10:37:00 -0500] "DELETE //api/v3/projects/n/repository/branches?name=api&gitlab=%3Cgitlab.Gitlab+object+at+0x7f897dcdbb90%3E&protected=False&commit=%3Cclass+%27gitlab.ProjectCommit%27%3E+%3D%3E+%7Bu%27committer_email%27%3A+u%27amiller%40stuff.com%27%2C+u%27author_email%27%3A+u%27amiller%stuff.com%27%2C+u%27authored_date%27%3A+u%272015-08-24T10%3A09%3A09.000-05%3A00%27%2C+%27gitlab%27%3A+%3Cgitlab.Gitlab+object+at+0x7f897dcdbb90%3E%2C+u%27author_name%27%3A+u%27Aaron+Miller%27%2C+u%27parent_ids%27%3A+%5B%5D%2C+u%27committed_date%27%3A+u%272015-08-24T10%3A09%3A09.000-05%3A00%27%2C+%27_created%27%3A+False%2C+u%27message%27%3A+u%27first+commit%5Cn%27%2C+u%27committer_name%27%3A+u%27Aaron+Miller%27%2C+u%27id%27%3A+u%27c463222b71c7b3289761062dbdc638fa8fb36f17%27%7D&action=delete&_created=True HTTP/1.1" 405 5 "-" "python-requests/2.5.3 CPython/2.7.6 Linux/3.16.0-38-generic"
Successful request from webUI:
10.1.8.30 - - [24/Aug/2015:10:19:02 -0500] "DELETE /amiller/gl-api-test/branches/api_branch HTTP/1.1" 200 48 "https://gitlabhost/amiller/gl-api-test/branches" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36"
Module version = 0.9.2
Gitlab version = 7.7.1_omnibus.5.4.1.ci
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels