Open lihongguang00 opened 10 months ago
Extreme input
[The team marked this bug as a duplicate of the following bug]
Input is a non-zero unsigned integer, but not accepted! Error message is not correct!
[original: nus-cs2103-AY2324S1/pe-interim#3040] [original labels: type.FunctionalityBug severity.VeryLow]
[This is the team's response to the above 'original' bug]
As seen from the screenshot of the course website, problems in case of deliberate sabotage should not be considered a bug. A typical user would not input such a large number for the index as they would never reach such a large number of patients.
Furthermore, even if such input is entered by a user mistake, it does not cause harm and in such a case, the user would be able to clearly see the error. However, we acknowledge the error message can be handled better and hence choose to respond with
NotInScope
.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]
Hi, it seems that when I do
delete 300000000
, the error message seems to be correct but when I dodelete 3000000000
(extra 0), the error message changes to invalid command format instead. Perhaps this is due to overflow and maybe this overflow could be caught and handled so both throws the same error message?