Skip to content

[BUG] TypeError in getRequest method #4596

@sascha-hf

Description

@sascha-hf

On calling the getRequest method in ApacheSolrForTypo3\Solr\IndexQueue\AbstractIndexer.php a TypeError wasbeing thrown because the value of $GLOBALS['TYPO3_REQUEST'] was about to be returned which is not of type ServerRequest.
We were able to supress this behaviour by adding "$GLOBALS['TYPO3_REQUEST'] instanceof ServerRequest" in the condition.

The error first appeared in a TYPO3 V12 instance with Solr V12.1.1. We've updated TYPO3 and Solr up to V13 but the exception is still there when running the Solr indexer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions