Project

General

Profile

Actions

Bug #106384

closed

TypoScript condition matcher in CLI mode error on request test

Added by Christophe Monard about 1 month ago. Updated 19 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
Start date:
2025-03-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
TypoScript
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

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


Files

core-conditionMatcher.patch (947 Bytes) core-conditionMatcher.patch Fix missing request in CLI mode, doesn't affect Frontend Christophe Monard, 2025-03-19 09:37

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Actions #1

Updated by Gerrit Code Review about 1 month ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88755

Actions #2

Updated by Christian Kuhn 19 days ago

Actions #3

Updated by Gerrit Code Review 19 days ago

Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88958

Actions #4

Updated by Georg Ringer 19 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF