#106384TypoScript condition matcher in CLI mode error on request test
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
- main 89642[DOCS] Fix not displaying Changelog entry for 106743-SudoMode
- 12.4 89684[DOCS] Fix not displaying Changelog entry for 106743-SudoMode
- 13.4 89683[DOCS] Fix not displaying Changelog entry for 106743-SudoMode
- main 88755[BUGFIX] Initialize request variable if not existing
- 13.4 88958[BUGFIX] Initialize request variable if not existing