In AVI Load balancer versions 30.2.2 and 30.2.3, performing an update on a user object via the /api/user endpoint using a PUT request fails with an HTTP 500 Internal Server Error when the is_superuser field is omitted from the request payload. This issue impacts automated processes and API integrations that do not include this optional field during user updates, causing unexpected failures and interruption in user management operations.
Product: AVI Load Balancer
Affected Versions: 30.2.2, 30.2.3
This issue is caused by an input validation defect in the affected Controller versions. When the is_superuser attribute is not present in the payload of a user update (PUT request), the server encounters an unhandled exception due to missing field handling logic, resulting in a generic 500 Internal Server Error. The error response provides no detailed message, and related debug logs do not capture useful diagnostic information, complicating troubleshooting efforts.
{
"username": "testuser",
"password": "AviUser!1234",
"name": "testuser",
"is_superuser": false
}