Bug #106384
closedTypoScript condition matcher in CLI mode error on request test
100%
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
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
Updated by Christian Kuhn 19 days ago
- Related to Feature #97816: New TypoScript parser added
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
Updated by Georg Ringer 19 days ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1e5b5bcb43da25069d0b5a24868154b4ca0f2a4a.