API responding to POST requests as if they're GET requests
Created by: iamsteadman
Summary
In 8.5.1, POST /api/v3/projects
(with a valid name
field) returns a list of all projects in JSON with a 200 response code, therefore acting like a GET
request.
Steps to reproduce
Post to /api/v3/projects
with a name
parameter.
Expected behaviour
I imagine the API should return either the single project just created, or an array containing just that project.
We've got GitLab installed on an Ubuntu DigitalOcean box. My colleague updated it a few days ago and prior to his doing so, the python-gitlab project worked fine. Since the update I ditched python-gitlab in an effort to try and figure out what had changed, so have just been using Requests. I've tried posting the data in different formats, but always get the same response.
Let me know if you need more detail.