93809[BUGFIX] Have 'tree' always available in TS condition matcher
Commit message
Review
-
Code review CR +2 Done
- Garvin Hicking +2
- Oliver Klee +1
-
Verified V +2 Done
- Garvin Hicking +2
- Oliver Klee +1
- core-ci +1 CI
Issues 1
Files 3
- typo3/sysext/core/Classes/TypoScript/IncludeTree/Visitor/IncludeTreeConditionMatcherVisitor.php8+14 −9
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_typoscript_pagetsconfigfactory/Configuration/page.tsconfig+5 −0
- typo3/sysext/core/Tests/Functional/TypoScript/PageTsConfigFactoryTest.php+8 −0
Review log 2732
Show 57 earlier messages
-
Christian Kuhn uploaded patch set 1 04/23/26, 00:26
-
core-ci voted on patch set 1 V +1 04/23/26, 00:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100966
-
Christian Kuhn updated the commit message in patch set 2
V +104/23/26, 00:48 -
Christian Kuhn commented on patch set 2 04/23/26, 00:55
would *potentially* be ok with v13, but also a bit risky in edge cases. let's go main & v14 for now. -
core-ci voted on patch set 2 V +1 04/23/26, 00:56 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100968
-
Garvin Hicking voted on patch set 2 CR +1 V +1 04/23/26, 05:32
-
Georg Ringer voted on patch set 2 CR +1 V +1 04/23/26, 06:23
-
Stefan Froemken commented on patch set 2 CR +1 V +1 04/23/26, 06:31
Wow. Thank you. Just tested again, activated xdebug and yes, it does not runs into any catch block anymore. Wohouu. -
Oliver Klee commented on patch set 2 04/23/26, 06:55
IncludeTreeConditionMatcherVisitor.php:125Let's avoid the `empty` here: ```suggestion if ($localRootLine != []) { ``` -
Oliver Klee voted on patch set 2 V +1 04/23/26, 06:55
-
Garvin Hicking commented on patch set 2 04/23/26, 07:31
IncludeTreeConditionMatcherVisitor.php:125ReplyThat won't work, $localRootLine can also be NULL. So probably: ``` if ($localRootLine !== [] && $localRootLine !== null) ``` Don't know it is possible to be "0" or "" as well. -
Oliver Klee commented on patch set 2 04/23/26, 07:38
IncludeTreeConditionMatcherVisitor.php:125Reply@lolli@schwarzbu.ch What type would be the problem causing the bug? (This isn't clear from the ticket, the commit message of the `empty`.) -
Christian Kuhn commented on patch set 2 04/23/26, 08:16
IncludeTreeConditionMatcherVisitor.php:125Replyok. After the '?? []' fallback on the preceding line $localRootLine is narrowed to array, null is not reachable. '0' and '' would fail earlier already, different patch and won't kick in in practice since core does not do it. would be separate patch to truly sanitize into this direction let's go '!== []' for explicitness, making intention clear. -
Christian Kuhn uploaded patch set 3
CR +1V +104/23/26, 08:16 -
Christian Kuhn commented on patch set 3 04/23/26, 08:17
IncludeTreeConditionMatcherVisitor.php:125ReplyDone -
core-ci voted on patch set 3 V +1 04/23/26, 08:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101003
-
Oliver Klee voted on patch set 3 V +1 04/23/26, 08:33
-
Oliver Klee voted on patch set 3 CR +1 04/23/26, 08:33
-
Georg Ringer voted on patch set 3 CR +1 V +1 04/23/26, 09:40
-
Christian Kuhn voted on patch set 3 CR +2 V +2 04/23/26, 09:42
-
Garvin Hicking commented on patch set 3 CR -2 04/23/26, 09:49
IncludeTreeConditionMatcherVisitor.php:125ReplyI would really suggest ``` if ($localRootLine !== [] && $localRootLine !== null) ``` instead, because it does feel like that "null" from $fullRootLine above could fall through when pageId is also not set.....? -
Christian Kuhn commented on patch set 3 CR +1 V +1 04/23/26, 09:53
IncludeTreeConditionMatcherVisitor.php:125Replyok. please push and note i pushed the backport already which needs an update then. -
Garvin Hicking commented on patch set 4
CR +1V +104/23/26, 09:56Published edit on patch set 3. Copied Votes: * Code-Review-2 (copy condition: "changekind:NO_CHANGE OR **is:MIN**") -
Garvin Hicking commented on patch set 4 CR +1 V +1 04/23/26, 09:56
IncludeTreeConditionMatcherVisitor.php:125ReplyDone -
Oliver Klee voted on patch set 4 CR +1 V +1 04/23/26, 09:57
-
core-ci voted on patch set 4 V -1 04/23/26, 10:06 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101019
-
Garvin Hicking commented on patch set 4 CR 0 V 0 04/23/26, 10:17
Argh PHPSTan knows best I guess. I yield and revert to patchset 3 -.- Sorry everyone. -
Garvin Hicking commented on patch set 5
CR +1V +104/23/26, 10:17Published edit on patch set 4. -
core-ci voted on patch set 5 V +1 04/23/26, 11:03 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101023
-
Oliver Klee voted on patch set 5 CR +1 V +1 04/23/26, 11:07
-
Garvin Hicking voted on patch set 5 CR +2 V +2 04/23/26, 12:10
-
Garvin Hicking merged patch set 6 04/23/26, 12:10