Dri-water / pe

0 stars 0 forks source link

Possible to create duplicate recipe names by editing cookbook.txt #1

Open Dri-water opened 3 days ago

Dri-water commented 3 days ago

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.

image.png

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:

image.png

This can lead to issues with commands that rely on recipe names being unique, such as 'delete' as shown below.

image.png

This can lead to possible undefined behavior as the program flow has been disrupted, since duplicate entries are not usually intended.

soc-se-bot commented 2 hours ago

Your response not required for this bug as the team has accepted the bug as it is.