Open SemiColonKen opened 1 week ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Program does not handle case when the text file
Steps to recreate the bug: 1)change number of pullup to negative.
Since some of the default data is -1, some user may make a mistake when editing the text file by adding a negative sign before some data. It does not make sense for the number of pull up to be negative. Instead of allowing the user to load obviously incorrect data into the program, maybe you could consider removing the data point or clarifying with the user
[original: nus-cs2113-AY2425S1/pe-interim#211] [original labels: severity.Low type.FunctionalityBug]
[This is the team's response to the above 'original' bug]
Thank you for bringing this to our attention. We acknowledge that this accepting negative inputs via text file editing results in a nonsensical output, and that there are some lacking precautions against this behaviour in the current user guide, but we feel that this issue is
Not in Scope
, for three reasons:1) This issue only arises in the exceptionally rare case that a user goes out of their way to manually edit data via the text file, which is not a condoned action in the UG and is thus implictly done at users' own risk. Note that in this case, they have made the concious decision to not use the respective commands provided within the program that do have safeguards against this error.
2) In the event a user chooses to edit data via the save file, we as developers are not able to provide precautionary messages before, or during the event. Additionally, the amount of work needed to provide a tailored error message addressing the specific variable mismatch would be out of proportion with the rarity of this behaviour bug, and actually reduces the usefulness of the current data loading feature in the event of data corruption, where there may be multiple erronous entries in the save file.
3) There are already existing precautions against some level of data-corruption/malformation in the program that ignore erronous save-files. Evidently they did not catch this case which they should have, but they are already out-of-scope additional precautions given that data editing was not an advertised feature of the program, and thus we do not believe that catching cases such as this - which could be considered user self-sabotage - is in scope.
We appreciate your help in making our program more resilient and user friendly.
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: [replace this with your explanation]
Editing the saveFile.txt is allowed only until the input values were changed from int to float, which then prompted an illegal access to saveFile.
While the changing of age and input values to negative still allow the app to run, with exceptions displayed as string in 'view' command and negative values being ceil to 0. After exiting the app after the 'view' command, the invalid inputs still remain in the saveFile.