Open Progresst-8 opened 2 weeks ago
This issue is similar to #118.
[The team marked this bug as a duplicate of the following bug]
Possible to create duplicate recipe names by editing cookbook.txt
When manually editing the saved data in the database, it is possible to get the program to have duplicate recipe names as shown below.
However, the program does not usually allow duplicate recipe names, as seen from the error message when another recipe named "n6" is being added from the program itself.
This is an inconsistency in the program logic, given that the documentation states that being able to manually edit the .txt file database is allowed:
This can lead to issues with commands that rely on recipe names being unique, such as 'delete' as shown below.
This can lead to possible undefined behavior as the program flow has been disrupted, since duplicate entries are not usually intended.
[original: nus-cs2113-AY2425S1/pe-interim#224] [original labels: severity.Low type.FunctionalityBug]
[This is the team's response to the above 'original' bug]
Dear Tester,
We agree that this is a bug in the storage system on our end. Your issue has been accepted as is. Thank you.
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]
I can make the recipes have duplicate entries by having duplicate entries in the save file. Similarly for the ingredients.