-
Notifications
You must be signed in to change notification settings - Fork 38
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
[error] - monsieurbiz_search_search with POST empty throw 500 #201
Comments
Hi @cbastienbaron! In fact, because of the For information, is it possible to reproduce this error with our test app : |
Hey @delyriand 🖖 |
I pushed a new commit on your PR to throw a 404 |
Hi ,
Facing an issue when a user post an empty search or try to discover some 500 on app
To reproduce
https://github.com/monsieurbiz/SyliusSearchPlugin/blob/master/src/Controller/SearchController.php#L102
if query param no exist, an empty string is assigned
$query
but routemonsieurbiz_search_search
required 1 char minimumhttps://github.com/monsieurbiz/SyliusSearchPlugin/blob/master/src/Resources/config/routing/shop.yaml#L7
a possible solution will be to authorize 0 to n char
The text was updated successfully, but these errors were encountered: