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

search-api: Stop returning 500 on whitespace only queries #556

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

jnatten
Copy link
Contributor

@jnatten jnatten commented Dec 6, 2024

Fixes https://github.com/NDLANO/Issues/issues/4233

Fikser det ved å ikke tillate whitespace only strenger i NonEmptyString. Navnet på NonEmptyString sier ikke noe om at bare whitespace ikke er lov, men jeg antar at det aldri vil være nyttig for oss så vi løser det der tror jeg 😄

This patch fixes a problem where search queries would return 500 if you
passed a string with only spaces.
@jnatten jnatten requested a review from a team December 6, 2024 06:09
@gunnarvelle gunnarvelle merged commit 1bf76f5 into master Dec 6, 2024
31 checks passed
@gunnarvelle gunnarvelle deleted the 4233-space-problems branch December 6, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants