This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Description I'm submitting a ...
Traffic Control components affected ...
Current behavior:
When making a PUT request to /user/current with the following request body:
{
"user" : {
"email" : " "
}
}
Will return:
HTTP/1.1 200 OK
Content-Type: application/json
{
"alerts" : [
{
"text" : " User profile was successfully updated" ,
"level" : " success"
}
],
"response" : {
.
.
"email" : " " ,
.
}
}
And when making a PUT request to /user/current/ with the following request body:
{
"user" : {
"email" : null
}
}
Will return
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
{
"alerts" : [
{
"text" : " Internal Server Error" ,
"level" : " error"
}
]
}
Expected / new behavior:
Both requests should return:
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"alerts" : [
{
"text" : " Couldn't parse request: email: cannot be null or empty string" ,
"level" : " error"
}
]
}
Minimal reproduction of the problem with instructions: Reactions are currently unavailable
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
When making a
PUTrequest to/user/currentwith the following request body:{ "user": { "email": "" } }Will return:
And when making a
PUTrequest to/user/current/with the following request body:{ "user": { "email": null } }Will return
Expected / new behavior:
Both requests should return:
Minimal reproduction of the problem with instructions: