You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating an entity with any attachment and/or main documents, if Uwazi fails to save this files on S3, no error is reported to the user (actually a success message is reported to the user), and the entity is successfully created but without the files sent.
To Reproduce
Steps to reproduce the behavior:
Start a blank state uwazi with S3 configured.
Make sure S3 service is down
Create an entity with file or files attached
See success message
Check that the entity exists but has no files attached to it
Expected behavior
In my opinion this should behave as a transaction, if there is an error in the process like uploading files to S3 we should return an error and not save the entity either.
Another option is to keep the current behavior but give feedback to the user about the missing files and that they need to be re-uploaded to the entity
The text was updated successfully, but these errors were encountered:
Since we have remote forms and public forms where re-attaching things not an option, maybe start with the first approach and then provide ways for the user to recover whatever data they had already input (so as not to have to re-enter all the info again)
I guess this is all based on S3 uptime and reliability. If we were uploading to another support the chances of failure on the server side would be way lower. Other things can go wrong too such as a network error or a client error. Do we need to design for resilience to these failures, or just a proper client feedback and make them retry from the scratch is good enough?
In order not to loose the already inputted data, we can have the file upload as part of the validation, so they can reupload and submit again.
Another option could be uploading the files separately and keep the file handle, but this could create orphaned files if the form submission is never complete.
Describe the bug
When creating an entity with any attachment and/or main documents, if Uwazi fails to save this files on S3, no error is reported to the user (actually a success message is reported to the user), and the entity is successfully created but without the files sent.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In my opinion this should behave as a transaction, if there is an error in the process like uploading files to S3 we should return an error and not save the entity either.
Another option is to keep the current behavior but give feedback to the user about the missing files and that they need to be re-uploaded to the entity
The text was updated successfully, but these errors were encountered: