Ticket #198 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Error messages in study wizard should be more user friendly

Reported by: robert@… Owned by: business@…
Priority: major Milestone: Should have
Component: General Version:
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

When you create or edit a study, and you fill in a wrong value for a field, you get an error message in a dialog. But this error message is very technical. For example:

org.springframework.dao.DataIntegrityViolationException??: Could not execute JDBC batch update; SQL [update study_template_string_fields set template_string_fields_elt=? where study_id=? and template_string_fields_idx=?]; nested exception is org.hibernate.exception.DataException??: Could not execute JDBC batch update, see log for stacktrace

(see also ticket #193)

or

long → Field error in object 'dbnp.studycapturing.Study' on field 'templateLongFields': rejected value [{long=abc}]

These error messages should be more user friendly, maybe including a solution for the error (e.g. "you entered 'abc' in this field, but this field only allows natural numbers. Try entering a natural number.")

Assigned to Jeroen because it involves the study wizard.

Change History

Changed 3 years ago by work@…

  • milestone set to 0.7

Changed 3 years ago by work@…

  • owner changed from work@… to business@…
  • status changed from new to assigned

resolved in r1260, please test

Changed 3 years ago by business@…

  • status changed from assigned to closed
  • resolution set to fixed

fixed, now also for the importer

Note: See TracTickets for help on using tickets.