nus-cs2103-AY2122S1 / pe-dev-response

0 stars 0 forks source link

Manually editing json cause unsuccessful reload #4617

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

I accidentally change the uuid of the link-contacts

image.png

Then upon reload, the app look like this

image.png

The data are already inconsistent, as the app shows contacts like Alex Yeoh with Basketball training, however, the events are already deleted.

Further interaction with the app even causes UI glitches like below. The App is unable to show any correct information, nor can it display the existing data correctly.

image.png

This bug is serious as the experience is catastrophic for users if it happens, and it can cause potential lost of data. There is lack of gracefully handling of data in the Storage. And this can happen if user just follow the user guide to edit the data file or due to some contamination of data files during saving or transferring. However, I think this is Medium as normally user may not edit the file in such a way.


[original: nus-cs2103-AY2122S1/pe-interim#4685] [original labels: type.FunctionalityBug severity.Medium]

chunweii commented 3 years ago

Team's Response

Same issue of not checking the uuid in the json file before loading.

Duplicate status (if any):

Duplicate of #4616