Issue Bug Closed

#96082EXT:indexed_search times out when penetrated with very long search terms

Alexander Köberl 11/25/21, 15:11 updated 05/26/24, 08:03

Description

One of my customers is dabbling in massive system testing. He tested the index search with >1MB long texts as searchword. Then the search runs into a timeout and outputs “oooops error” what is not very beautiful…

The easiest way to prevent this is to limit the length of the search word in the SearchController. (and limiting the text field with maxlength which does not necessarily prevent evil testers from triggering this error)

For example

if (mb_strlen($searchWord) > 100) {
    return;
}

A feature could be to set the max sword length in typoscript

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Alexander Köberl changed description 11/25/21, 15:16

  2. Georg Ringer changed status New Accepted 11/26/21, 11:41

  3. Georg Ringer commented and changed status Accepted Closed 05/26/24, 08:03

    I just tested this in v13 and couldn’t reproduce it anymore. If this issue is still valid in v11/V12, feel free to open a new issue.
    please also provide the actual error