Skip to content

[BUG] SiteService re-creating request from globals throws exception on internal requests #150

Description

@avenit-martin-schulz

TYPO3 version

14.2

PHP version

8.3

Extension version

4.1.3

Composer mode

  • I'm running TYPO3 in composer mode.

Operating system

macOS 26.6 (25G72)

Current behavior

On internal request, as done by solr indexer (since TYPO3 14) a propper TYPO3_REQUEST is present while global $_SERVER is still the initial solr indexer call (most likely CLI). This causes ServerRequestFactory::fromGlobals() call in T3Apis SiteService to throw an exception

Expected behavior

Either use TYPO3_REQUEST request if present or catch ServerRequestFactory::fromGlobals() exception as "this request is not for me"

Steps to reproduce

  1. Try solr indexing any record --> it dies silently because solr is not catching the thrown exception (different bug by solr)

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions