Open telferang 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:
The team has not provided any explanation or conclusive proof as to why the issues are duplicates, and without such justification, I should not need to rebut this claim. However, I believe the bugs are not duplicates because they describe distinct problems with different causes and fixes. Bug #8 causes the program to crash entirely, requiring exception handling to resolve, whereas Bug #9 results in invalid amounts being loaded, which requires validation of the input. These issues cannot be fixed independently, as one relates to error management and the other to input correctness, demonstrating that they are separate and should not be labeled as duplicates.
The program crashes when the text file is corrupted by changing "MALE" to "MAL". Instead of crashing, the program should ignore that line or the entire file