If a very long string is entered in any of the text input fields in the patient form document can not be saved and a non-intuitive error message is displayed

Description

E.g. any string longer than 256 characters in ethnicities or names (or any other) input fields

Sample long string: "ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccczzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz1234567890"

Expected behaviour: an error message stating the problem ("input is too long" or something like that)

Actual behaviour: a cryptic error message "Error number 3201. Exception while saving"

It is unlikely anyone will actually enter such a long string (discovered this by accident), but generally we need to parse user input better

Environment

None

Status

Assignee

Sergiu Dumitriu

Reporter

Andrew Misyura

Labels

None

External issue ID

None

External issue ID

None

Epic Link

Components

Affects versions

1.2.4
1.3-milestone-1

Priority

Minor
Configure