89242[BUGFIX] Allow cType name as plugin name in f:link.action
Commit message
Review
-
Code review CR 0
-
Verified V 0
Issues 1
Files 1
Review log 810
-
Lina Wolf uploaded patch set 1 04/26/25, 06:50
-
core-ci voted on patch set 1 V -1 04/26/25, 06:56 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/78204
-
Lina Wolf uploaded patch set 2
V -104/26/25, 06:58 -
core-ci voted on patch set 2 V +1 04/26/25, 07:04 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/78205
-
Stefan Bürk commented on patch set 2 04/27/25, 14:08
I tend not to make this. At first because this is not a bug, it's simply user / integrator issue. When a plugin name is expected, pasing the combined ctype identifier is simply wrong and the integrator must correct this. Thinking further, shoud we also "set" the extension name out of the cytpe, but what if that is already set etc. This is a start of a forth and back normalization hiding away a simple configuration / parameter passing and allowing integrators to get sloppy on this. -
Stefan Bürk commented on patch set 2 04/27/25, 14:35
Reply
At best, manual provided pluginName should be verified if * pluginName is valid and exists * pluginName is valid for provided action eventually along with https://review.typo3.org/c/Packages/TYPO3.CMS/+/77294 and throwing a concrete exception that the plugin daoes not exists/is invalid for the extension/action etc. We should abstain from doing more and more user error correction and keeping "invalid" templates laying around. To make it clear, that silently "taking" the "invalid" value needs to be addressed, but in my eyes not by trying to "auto" correct it with some assumptions and in a incomplete manner. Beside that, this should also be done in a more generic place like the UriBuilder istead of the ViewHelplers. I'd say, that the `f:link.action` viewhelper has the same issue, and also other link/uri generating viewhelpers eventually. -
Oli Bartsch commented on patch set 2 V -1 04/29/25, 07:56
Reply Unresolved
As Stefan said, we should not implement such auto magic. -
Oli Bartsch commented on patch set 2 05/12/25, 15:28
Unresolved
Hi @112@linawolf.de, how to proceed here? Should we close this for now? -
Lina Wolf commented on patch set 2 05/28/25, 13:45
Yes, seems like the majority disagrees with this solution -
Lina Wolf abandoned the change 05/28/25, 13:46
Majority disagrees with this solution