Project

General

Profile

Actions

Bug #96082

open

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

Added by Alexander Köberl over 2 years ago. Updated over 2 years ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2021-11-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
8.0
Tags:
indexed_search
Complexity:
easy
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Alexander Köberl over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Georg Ringer over 2 years ago

  • Status changed from New to Accepted
Actions

Also available in: Atom PDF