Setting use_custom_template
to false in Projects API fails with 500 error
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Trying to create a new project with terraform or with projects API, with use_custom_template
set to false
fails with 500 error.
* Connection #0 to host gitlab.com left intact
{"message":"500 Internal Server Error"}%
Looking into logs in Kibana, we found Unable to save project. Error: unknown attribute 'use_custom_template' for Project.
.
However, in our code base in ee/spec/services/projects/create_from_template_service_spec.rb:
67: context 'when use_custom_template is not present or false' do
So "false" should be a valid value.
The issue with first encountered by an Ultimate customer in (Internal Link) and we were able to reproduce it.
What is the current bug behavior?
Passing "use_custom_template": "false"
while creating project with projects API, it fails with 500 internal server error
What is the expected correct behavior?
Passing "use_custom_template": "false"
while creating project with projects API should succeed or else fail with a meaningful error message.
Output of checks
This bug happens on GitLab.com
Workarounds
Currently, not passing the setting at all will have it default to false.