Bug #80803

Doctrine NotNullConstraintViolationException when changing site langauge on result page

Added by David Rellstab about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2017-04-11
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When the site-language is changed on the result list of indexed_search it tries to write an 'index_stat_search' record (SearchController Line 818). But as the searchword is null and the searchword-column is not nullable, Doctrine throws an NotNullConstraintViolationException.

In 7 LTS this error was silent (no DBAL) and there was simply no index_stat_search written.

Shouldn't there be a check that prevents index_stat_search from being written if the searchword is null? (SearchController.php Line 301)

Problem can be reproduced on a fresh 8 LTS TYPO3 distribution, exact PHP Version is 7.0.15.

History

#1 Updated by Mathias Schreiber about 2 years ago

  • Status changed from New to Closed

fixed with #81786

Also available in: Atom PDF