xinweichong / pe

0 stars 0 forks source link

Corrupted files cause loss of entire json file data #13

Open xinweichong opened 2 weeks ago

xinweichong commented 2 weeks ago

Screenshot 2024-11-15 at 17.24.50.png

Screenshot 2024-11-15 at 17.25.47.png

Screenshot 2024-11-15 at 17.27.01.png

Upon editing the json file to simulate a corrupted file event, so long as a single field in the entire json file is corrupted with an invalid character, the application no longer reads the file and all data is lost. This is may be troublesome for the user and can consider only skipping entries that contain invalid fields instead of skipping the entire json file and starting up an application with no entries from scratch