Open fahim-tazz opened 1 year ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
No error message when User edits storage to an invalid JSON format
A core constraint is to ensure the storage is a Human editable file. However, it is not clear what is a "valid" JSON file.
It is easy for the user to make simple errors in the JSON (e.g. duplicate entries) that render it invalid.
The application starts up empty when invalid JSON encountered. However, no error message is given within the application result display.
Furthermore when a user types a command, the empty data will save over whatever previous invalid JSON file existed (which could lead to permanent loss of data).
There should be a warning in the UG or a clear error message so that the user can try and avoid such a situation.
[original: nus-cs2103-AY2223S2/pe-interim#4180] [original labels: severity.Low type.FunctionalityBug]
[This is the team's response to the above 'original' bug]
We clearly state in the UserGuide that advanced users can edit the JSON file directly. We are assuming that advanced users know JSON file format, and are confident enough to edit it directly. We feel that this is a fair assumption.
We also clearly state in the UserGuide the warning that if the JSON file is made invalid the application will discard all the JSON data.
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: My issue and the duplicate issue does not reflect the same thing.
My issue is referring to the fact that Advisio does not even start when the JSON file is corrupted. Instead, it crashes with an error.
Expected Behaviour (according to the UG screenshot attached): Advisio will start, but with an empty dataset.
Adding duplicate policies to a client in the JSON file:
Launching Advis.io again results in the following errors:
This does not follow the behaviour mentioned in the UG: