Open V4Vern opened 4 weeks ago
Ah, I see what's happened here. You edited the saved_news file, which isn't quite what we had in mind. Thanks for bringing it to our attention, though. Perhaps clearer documentation about not tinkering with the file would help prevent this.
However, I feel that the program did handle the corrupted file quite gracefully as it did not exit or crash, and it was still able to reproduce the contents of the file. This is my opinion only so correct me if I'm wrong :')
Team chose [response.NotInScope
]
Reason for disagreement: The UG doesn't state any potential known issue for storage in the UG. CS2113 Website mentioned that "The user cannot attempt to use the missing feature or when the user does so, the software fails gracefully, possibly with a suitable error message".
However, in this case, there is no suitable error message informing the user that the dates for the article are wrong or any potential URLs or text are invalid. It does not check the authenticity of the loaded file or new articles or even dates which can be quite misleading for the user in the event that the fille somehow got corrupted.
Description: There is no storage validation check on "saved_news.txt". There is no validation check on storage to check for the authenticity of the article date or url. I was able to change it to Feb 31, 2024 (non-existent date). Program cannot handle corrupted/modified text file. I can modify the URL or change it to something else but the program does not detects it.
Steps to reproduce:
Edit the text file "saved_news.txt" and change the date of any article to Feb 31 2024
Actual Result: When I list the load command, it shows the changes that I have made, which is shown below
Screenshot: