API call to move project to different group fails when using Group and Project names instead of ID
Summery: The Gitlab API reference states a project can be moved to a group's namespace using the the group's path or ID (as decribed http://docs.gitlab.com/ee/api/groups.html#transfer-project-to-group) - The call actually accepts only an ID, and calling with the group path fails.
Steps to reproduce:
Simply make a POST call to the API as described in the reference linked in the summary, using the group's path instead of its ID. The error returned is Failed to transfer project {:namespace=>["is invalid"]}
.
Possible fixes: A previous issue with this API call was reported in the past (can be found at https://github.com/gitlabhq/gitlabhq/pull/9448), and was fixed by sazor. The fix can be found at https://github.com/gitlabhq/gitlabhq/commit/b93053695a94822801a87ff2b1850999130842c1, and the code in file app/controllers/admin/projects_controller.rb line 26 clearly shows the writer was only expecting an ID to be passed. The possible solutions are either changing the code to tolerate a path instead of an ID, or simply to change the API reference to state that the call only expects an ID to be passed.