nus-cs2103-AY2425S1 / pe-dev-response

0 stars 0 forks source link

Lack of datetime validation for appointment creation #593

Open nus-se-script opened 1 week ago

nus-se-script commented 1 week ago

Screenshot 2024-11-15 at 5.15.43 PM.png Screenshot 2024-11-15 at 5.17.03 PM.png

Issue: Appointments can be created with invalid dates/times, eg 2025-02-31 (there is no 30/31 Feb in any calendar year), and there will be a success message shown. However, when details are later viewed using the view command, for either patient or doctor, there is a message saying an incomplete appointment, with a date different from what was entered.

To replicate, use the following commands (assuming default data in the app): createD n/Dr Jane Smith p/87654321 e/dr.jane.smith@hospital.com a/456 Elm Street (this should be doctor with index 1) addA z/10 z/1 x/2025-02-31 00:00 view z/10


[original: nus-cs2103-AY2425S1/pe-interim#842] [original labels: severity.Medium type.FunctionalityBug]

Nigeltzy commented 1 week ago

Team's Response

No details provided by team.

Duplicate status (if any):

Duplicate of #2007