Open frederickpek opened 2 years ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Wrong error being displayed when Index exceeds Max Int
For the command Index field, input a number that whose absolute value is greater than the max integer value 2147483647.
Eg. 2147483648, or its negative counterpart -2147483648
Same error for other commands.
[original: nus-cs2103-AY2122S1/pe-interim#4895] [original labels: severity.Low type.FunctionalityBug]
[This is the team's response to the above 'original' bug]
No details provided by team.
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]
Team chose [severity.Low
]
Originally [severity.VeryLow
]
Reason for disagreement: [replace this with your explanation]
When trying to index clients for a large value (presumably larger than interger max int), the error message indicates that the command is keyed with an invalid format. This is not the case.
Validation regex could be used to first check if the string is indeed all interger values, then try to parse and catch
NumberFormatException
.