Uploaded image for project: 'PhenoTips'
  1. PT-2634

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: 1.2.4, 1.3-milestone-1
    • Fix versions: None
    • Components: patient-form
    • Labels:
      None

      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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                asm Andrew Misyura
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: