Null bio key in POST /users throws 500
If you make a POST request to /users
on the current nightly build with bio
set to null
, the request will return a 500.
For example:
{
"username": "QbjWGCdamPdrtWPiHHIp",
"can_create_project": true,
"twitter": "",
"shared_runners_minutes_limit": null,
"linkedin": "",
"color_scheme_id": 1,
"skype": "",
"identities": [],
"projects_limit": 100000,
"note": null,
"state": "active",
"location": null,
"email": "ebofqeghovwvcjxhetnd@examplegitlab.com",
"website_url": "",
"job_title": "",
"two_factor_enabled": false,
"bio": null,
"work_information": null,
"private_profile": false,
"can_create_group": true,
"is_admin": false,
"external": false,
"theme_id": 1,
"public_email": "",
"extra_shared_runners_minutes_limit": null,
"name": "ceohKiiyDJYODiaikAxz",
"skip_confirmation": true,
"reset_password": true,
"avatar_url": "https: //www.gravatar.com/avatar/9460b460afcde1bf8170291f1af9ae3a?s=80&d=identicon",
"organization": null,
"force_random_password": false
}
returns a 500 while:
{
"username": "QbjWGCdamPdrtWPiHHIp",
"can_create_project": true,
"twitter": "",
"shared_runners_minutes_limit": null,
"linkedin": "",
"color_scheme_id": 1,
"skype": "",
"identities": [],
"projects_limit": 100000,
"note": null,
"state": "active",
"location": null,
"email": "ebofqeghovwvcjxhetnd@examplegitlab.com",
"website_url": "",
"job_title": "",
"two_factor_enabled": false,
"bio": "## Hello",
"work_information": null,
"private_profile": false,
"can_create_group": true,
"is_admin": false,
"external": false,
"theme_id": 1,
"public_email": "",
"extra_shared_runners_minutes_limit": null,
"name": "ceohKiiyDJYODiaikAxz",
"skip_confirmation": true,
"reset_password": true,
"avatar_url": "https: //www.gravatar.com/avatar/9460b460afcde1bf8170291f1af9ae3a?s=80&d=identicon",
"organization": null,
"force_random_password": false
}
works as expected