Invoke the PUT v1/account endpoint with the payload:
{
"optlock": 32,
"organization": {
"expirationDate": "2026-02-01T22:59_59.999Z"
}
}
An error 500 is returned:
{
"type": "exceptionInfo",
"httpErrorCode": 500,
"message": "An internal error occurred: Error during Persistence Operation.",
"kapuaErrorCode": "INTERNAL_ERROR"
}
Expected behaviour:
An error of class 400 should be returned.
This PR fixes the following bug:
Invoke the PUT v1/account endpoint with the payload: { "optlock": 32, "organization": { "expirationDate": "2026-02-01T22:59_59.999Z" } } An error 500 is returned: { "type": "exceptionInfo", "httpErrorCode": 500, "message": "An internal error occurred: Error during Persistence Operation.", "kapuaErrorCode": "INTERNAL_ERROR" } Expected behaviour: An error of class 400 should be returned.