Issue Bug Closed

#106384TypoScript condition matcher in CLI mode error on request test

Christophe Monard 03/19/25, 09:41 updated 08/12/25, 14:36

Description

When adding a TypoScript condition using [request && …] the component TYPO3.CMS.Core.TypoScript.IncludeTree.Visitor.IncludeTreeConditionMatcherVisitor throws a SyntaxError.

TypoScript condition [request && request.getNormalizedParams() && request.getNormalizedParams().isBehindReverseProxy()] could not be parsed: Variable "request" is not valid around position 1 for expression `request && request.getNormalizedParams() && request.getNormalizedParams().isBehindReverseProxy()`.-

The request in variables doesn’t exist and is never created (as null) in the Resolver during CLI.
This problem doesn’t exist in TYPO3 v12.

I’ve made a patch to fix the workaround.

Tested on TYPO3 13.4.6

Reviews 5