Open dsicol opened 1 year ago
We already indicated in the user guide that the user should not edit the file. However, I will accept this bug as we did not handle cases for negative numbers in the data file.
Team chose [severity.Medium
]
Originally [severity.High
]
Reason for disagreement: ## Context
Thank you for your response.
I understand that the user guide has discouraged users from manipulating the data for good reason. However:
This implies that users are allowed to manipulate data
This is to simulate save file corruption to test if the application is able to handle it:
Invalid inputs such as negative numbers are allowed via manipulating the save file.
Performing an action with the invalid input such as the negative number causes the application to fail; it crashes.
The application is unable to launch again after the first crash, rendering it completely unreasonable should the save file be manipulated by corruption. The application should be able to handle the error.
This bug is a High
severity bug for the aforementioned reasons; it is not usable after the crash, and it does not have any documentation or interface for instructions to fix the issue.
Negative number budget
As shown in the image above, the corrupted save file data is able to produce a negative budget in item number 4,
big budget
.Creating an expense for
big budget
Creating an expense of amount
1
, crashed the application shown by the following:As shown in the image, an innocent user trying to add an expense to the budget:
big budget
will run into an application crash that is not handled rooting from the corruption of the save file.Unable to launch the application again
As shown by the image above, the aforementioned bug will lead to the application being unable to be run again, with no error messages to help the user, and no direct documentation in the user guide to help.