uwazi icon indicating copy to clipboard operation
uwazi copied to clipboard

Uncaught exeception makes Uwazi fail silently

Open txau opened this issue 3 years ago • 3 comments

In a Uwazi instance that has data coming from a migration from another system, which probably was injected directly in the database without proper validation, it happens that there are thesauri values in the entities that do not exist in the actual thesauri.

This triggers the following nuances:

  • Since the values and labels are denormalized, when viewing the entity the values appear but when editing the multi-selects are empty.
  • When attempting to save a validation error is triggered, but an uncaught exception happens during the process (as show in the screenshot) so there is no user feedback in the UI and also there is no server side logging of the error.
  • Moreover, despite getting a "422 - unprocessable entity" error, the activity log shows an entry for the edition but the new data was not recorded.

image

txau avatar Nov 24 '21 15:11 txau

@txau This is about specific problem in a specific dataset, from almost two years ago. Should we still check it, or close it?

LaszloKecskes avatar Sep 12 '23 13:09 LaszloKecskes

@LaszloKecskes not sure. I don't remember the details. I was wondering if at least the uncaught exception should be handled?

txau avatar Sep 12 '23 14:09 txau

@txau Yes. Also, the issue describes it in such a way that it is easily reproducible without the original data. I've tried it out, it's still happening. So, you are right, let's keep this one open.

LaszloKecskes avatar Oct 24 '23 08:10 LaszloKecskes