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

[BUGFIX] add empty string as fallback #3444

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

lukasniestroj
Copy link
Contributor

@lukasniestroj lukasniestroj commented Jan 2, 2023

What this pr does

ensure a string is always returned, even if the query does not exist

How to test

Define a queryGroup "A", filter by that new group, manipulate the url by hand, submit form. Page should not show error.

@dkd-friedrich
Copy link
Member

Thanks for reporting and providing a patch.

Ensuring that a decoded string is returned is unfortunately not sufficient. An invalid filter will be applied and Solr will return an error (400 Bad Request) that leads to an exception.

I've added a check for invalid filter parts, invalid filters will be ignored and logged.

lukasniestroj and others added 2 commits March 27, 2023 13:46
ensure a string is always returned, even if the query does not exist
Invalid filter options will lead to Solr errors and exceptions
in frontend. This commit adds an additional check, ensuring invalid
filter options will not be applied.

A log entry will help the website administrator to solve the
issue.
@dkd-friedrich dkd-friedrich merged commit 36d17de into TYPO3-Solr:main Apr 4, 2023
@dkd-kaehm dkd-kaehm mentioned this pull request Oct 13, 2023
1 task
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