87455[BUGFIX] Prevent undefined array key error core version checks
Commit message
Review
-
Code review CR +2 Done
- Oli Bartsch +2
- Garvin Hicking +1
- Benni Mack +1
-
Verified V +2 Done
- Oli Bartsch +2
- Garvin Hicking +1
- Benni Mack +1
- core-ci +1 CI
Issues 1
Files 3
Review log 1012
-
Oli Bartsch uploaded patch set 1 12/11/24, 17:07
-
core-ci voted on patch set 1 V +1 12/11/24, 17:21 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/70964
-
Benni Mack commented on patch set 1 CR +1 V +1 12/11/24, 23:33
hard to "test" btw. -
Garvin Hicking commented on patch set 1 V -1 12/12/24, 08:40
I've tested this by patching `typo3/sysext/install/Classes/Service/CoreVersionService.php`::`fetchFromRemove` to `return []` to provoke it in the legacy install UI. While this removes the exception, we may need to expose that on UI level, contacted Oli, just completing the note here. -
Oli Bartsch uploaded patch set 2
CR +1V +112/12/24, 10:07 -
Oli Bartsch commented on patch set 2 12/12/24, 10:10
Reply
As discussed, it's quite an effort to streamline the UI because there is currently no logic for "invalid API response" at all. This means on invalid API responses, the system assumes that the version is outdated and to distinguish this, we need to change quite an amount of code, which should IMO not be done in this patch since this will be backported to v12. I suggest to prevent the PHP errors and do UI changes in a separate patch. -
core-ci voted on patch set 2 V +1 12/12/24, 10:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/71021
-
Garvin Hicking commented on patch set 2 CR +1 V +1 12/12/24, 10:48
Reply
Yes, I was afraid the "UI route" would be much work, and agree. The edge cases where the API fails is hopefully rare enough. -
Benni Mack voted on patch set 2 CR +1 V +1 12/12/24, 11:03
-
Christian Kuhn commented on patch set 2 12/12/24, 11:14
CoreRelease.php:37just as note: "new \DateTimeImmutable('')" leads to "now". -
Oli Bartsch commented on patch set 2 CR +2 V +2 12/12/24, 12:08
CoreRelease.php:37ReplySure, however before this would have been "NULL" which led to the same result, while NULL is deprecated. -
Oli Bartsch merged patch set 3 12/12/24, 12:08