Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe with a single 'space' as the title returns "404 page not found" - reproduced on the demo site #3505

Open
6 tasks done
dino9848 opened this issue Apr 21, 2024 · 2 comments
Labels
bug: confirmed bug Something isn't working good first issue Good for newcomers

Comments

@dino9848
Copy link

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

Create a manual recipe on the demo site by creating a recipe titled with just a single space creates a 404 error and no way to delete or edit the issue

Steps to Reproduce

  1. Click Create - select the 'create a recipe manually'
  2. enter a single space in the recipe name box and click "Create"

It creates a recipe without any option to delete from the GUI. Clicking on the edit option creates the 404 error

Note: If you do this twice, the second recipe created with automatically be named "(1)" and it does allow editing and deleting.
Best regards and thanks for a wonderful app.

Please provide relevant logs

No need. It happens on every version I tried. Can even be reproduced on your demo site. Would love to be able to correct my database that has one of these 'no-name can't delete' recipes

Mealie Version

No response

Deployment

Docker (Linux)

Additional Deployment Details

Running on current CasaOS

@dino9848 dino9848 added bug Something isn't working triage labels Apr 21, 2024
@dino9848
Copy link
Author

Able to delete from the data management admin account. Regular user can't delete.

@boc-the-git boc-the-git added good first issue Good for newcomers bug: confirmed and removed triage labels May 6, 2024
@boc-the-git
Copy link
Collaborator

Solution here is to stop a recipe being able to be created when the title (removing whitespace) is null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: confirmed bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants