ext-solr icon indicating copy to clipboard operation
ext-solr copied to clipboard

[BUG] Required argument "queryString" is not set for ApacheSolrForTypo3\Solr\Controller\SuggestController->suggest

Open simonschaufi opened this issue 1 year ago • 4 comments

Describe the bug

On my website I have lots of bots doing crazy things and sometimes also humans do crazy things, I'm not sure but I can see lots of exceptions on my system like this:

Required argument "queryString" is not set for ApacheSolrForTypo3\Solr\Controller\SuggestController->suggest.

To Reproduce Steps to reproduce the behavior:

  1. Call https://www.example.de/suche/?type=7384 with the suggestion enabled or
  2. Call https://www.example.de/suche/suggest.json if mapping was setup

Expected behavior An error message but not an exception

Used versions (please complete the following information):

  • EXT:solr Version: 11.5.6 but happens on also latest version as well

simonschaufi avatar Apr 26 '24 10:04 simonschaufi

Hi @simonschaufi,

have you found a solution to the problem, i have the same error message for the current version.

Gitsko avatar Oct 08 '24 16:10 Gitsko

For now I'm just ignoring the errors. Maybe it would be possible with a htaccess rule to block those kind of requests.

simonschaufi avatar Oct 08 '24 16:10 simonschaufi

You need to pass a search word via tx_solr[queryString] parameter.

saitho avatar Oct 23 '24 08:10 saitho

Bots don't do that! :smile:

simonschaufi avatar Oct 23 '24 12:10 simonschaufi