nus-cs2113-AY2425S1 / pe-dev-response

0 stars 0 forks source link

Corruption in transaction json file causes program to crash #20

Open nus-pe-bot opened 1 day ago

nus-pe-bot commented 1 day ago

If user accidentally adds an extra character in date for transaction json file, program will infinite loop error messages on next launch. This could potentially be a big issue as if there are thousands of transactions, just one of the dates need to be corrupted for this to happen. It would be very hard for user to find the error manually and program cannot be relaunched until json file is either deleted or that line is mended. I gave this a severity high because program is unusable state if this happen. It might not happen because a user editing json file directly as well. It may have just been a result of file corruption.

image.png

image.png

image.png

Steps to replicate:

create transaction close application edit date in json file to simulate corruption open appication


[original: nus-cs2113-AY2425S1/pe-interim#28] [original labels: type.FeatureFlaw severity.High]

Gao327 commented 1 day ago

Team's Response

No details provided by team.

Duplicate status (if any):

Duplicate of #493