Unhandled Exceptions for missing required attributes while creating record
Issue Currently, the storage PUT endpoint lacks proper error messages if there are missing attributes of in the payload. It shows a generic message which is not informative enough for user to address it: "HV000028: Unexpected exception during isValid call,"
Ideally the error message should clearly list out the missing attributes such as 'kind', 'acl', or 'legal'.
Below sample example where acl in null , Response gives generic message.
Suggestions
• Add cases where these required attributes are null. With relevant error messages like
Missing Attributes | Suggested Error Messages |
---|---|
Kind | Mandatory fields missing- kind / kind cannot be empty |
Acl | Mandatory fields missing- acl / acl cannot be empty |
Legal | Mandatory fields missing- legal / legal cannot be empty |
Acl and Legal | Mandatory fields missing- acl, Mandatory fields missing- legal / acl cannot be empty, legal cannot be empty |
Kind, Acl and Legal | Mandatory fields missing- kind, Mandatory fields missing- acl, Mandatory fields missing- legal / kind cannot be empty, acl cannot be empty, legal cannot be empty |