Internal error while using REST API for editing wiki pages
I'm able to create new wiki page by using restapi, but when using methods to edit the page or delete the page I receive internal error. I'm testing this on GitLab Community Edition 10.3.4.
$ curl -X POST -d '{"content": "Hello world", "title": "home", "slug": "home", "format": "markdown"}' -H 'PRIVATE-TOKEN: aaaaaaaaaaaa' -H 'Content-Type: application/json' -H 'Content-Length: 81' http://gitlab.endsec.net/api/v4/projects/27/wikis -k
> {"content": "Hello world", "title": "home", "slug": "home", "format": "markdown"}
$ curl -X PUT -d '{"content": "Hello world", "title": "home", "slug": "home", "format": "markdown"}' -H 'PRIVATE-TOKEN: aaaaaaaaaaaa' -H 'Content-Type: application/json' -H 'Content-Length: 81' http://gitlab.endsec.net/api/v4/projects/27/wikis/home -k
> {"message": "500 Internal Server Error"}
$ curl -X DELETE -H 'PRIVATE-TOKEN: aaaaaaaaaaaa' http://gitlab.endsec.net/api/v4/projects/27/wikis/home -k
> {"message":"500 Internal Server Error"}
Edited by Piotr Przetacznik