thedarie / pe

0 stars 0 forks source link

Program crashes when invalid date is specified #3

Open thedarie opened 2 years ago

thedarie commented 2 years ago

image.png

Using a date like 31st February for an appointment will crash the program

soc-pe-bot commented 2 years ago

Team's Response

No details provided by team.

The 'Original' Bug

[The team marked this bug as a duplicate of the following bug]

DateTimeParseFormatException when searching appointments by date

DateTimeParseFormatException when searching for dates that are not valid dates.

In addition, date formats that do not adhere to (what i assume to be YYYY-MM-DDThh:mm:ss) will throw the same error.

This command seems to only throw an error when there are items in the list. An empty list does not throw the error.

image.png

image.png


[original: nus-cs2113-AY2122S2/pe-interim#63] [original labels: severity.Medium type.FunctionalityBug]

Their Response to the 'Original' Bug

[This is the team's response to the above 'original' bug]

will be added in the future version to check the format, users should follow the user guide

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]


:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: Because the expected date format is complex, the chances of an invalid date input is rather high which causes the program to crash. As mentioned in other issues, the crash may result in data loss due to the save file not being written.


:question: Issue type

Team chose [type.FeatureFlaw] Originally [type.FunctionalityBug]

Reason for disagreement: [replace this with your explanation]