Although there is a check for the appointment date's validity, there is no check of the time of the appointment which will be any digit value user inputted.
I rate this as medium because the user should avoid this kind of input. But as a appointment scheduling program, this may result in patient's appointment have not been scheduled correctly.
Command used:
addApp 1 /d that /t 2021-03-31 25:00:00
Although there is a check for the appointment date's validity, there is no check of the time of the appointment which will be any digit value user inputted.
I rate this as medium because the user should avoid this kind of input. But as a appointment scheduling program, this may result in patient's appointment have not been scheduled correctly.
Command used:
addApp 1 /d that /t 2021-03-31 25:00:00
[original: nus-tic4002-AY2021S2/pe-interim#143] [original labels: severity.Medium type.FunctionalityBug]