86047[BUGFIX] Apply `removeTags` in RTE YAML default processing
Commit message
Review
-
Code review CR +2 Done
- Garvin Hicking +2
- Guido Schmechel +1
- Simon Praetorius +1
- Oliver Hader +1
- Benni Mack +1
-
Verified V +2 Done
- Garvin Hicking +2
- Oliver Hader +1
- Benni Mack +1
- core-ci +1 CI
Issues 2
Files 5
- typo3/sysext/core/Classes/Html/HtmlParser.php+12 −5
- typo3/sysext/core/Documentation/Changelog/12.4.x/Important-104839-RTEProcessingConfigurationRespectsRemoveTags.rstnew+106 −0
- typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SecurityTest.php+66 −50
- typo3/sysext/rte_ckeditor/Configuration/RTE/Processing.yaml+2 −1
- typo3/sysext/rte_ckeditor/Tests/Functional/HtmlParser/HtmlParserProcessingTest.phpnew+88 −0
Review log 2228
Show 23 earlier messages
-
Garvin Hicking uploaded patch set 1 09/12/24, 13:09
-
Garvin Hicking commented on patch set 1 09/12/24, 13:12
BACKPORT NOTE: I think we should not backport this to 11.5 because for older versions this may do more bad then good in terms of "expected results". I do believe we should fix this in the currently stable version. I am not sure where to put the Important changelog so that both v13 and v12 users will properly take notice. Should it be put into the 12.4 AND the 13.3 directories? If it's only in 'v13', v12 users may not recognize it. If it's only in 'v12', the v13 users may not notice. This is a change that IMO needs explicit mentioning in the release notes. -
core-ci voted on patch set 1 V -1 09/12/24, 13:19 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/65563
-
Garvin Hicking uploaded patch set 2
V -109/12/24, 13:33Fix security test -
Andreas Kienast commented on patch set 2 09/12/24, 13:37
Please prepend your commit message with `[!!!]` and rename the ReST from "Important" to "Breaking". -
core-ci voted on patch set 2 V +1 09/12/24, 13:38 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/65566
-
Garvin Hicking uploaded patch set 3
V +109/12/24, 13:50Adjust to breaking -
Garvin Hicking commented on patch set 3 09/12/24, 13:51
Reply
Done -
Andreas Kienast commented on patch set 3 09/12/24, 13:53
Breaking-104839-RTEProcessingConfigurationRespectsRemoveTags.rst:3breaking -
core-ci voted on patch set 3 V -1 09/12/24, 13:58 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/65573
-
Garvin Hicking uploaded patch set 4
V -109/12/24, 14:00adjust rest -
Garvin Hicking commented on patch set 4 09/12/24, 14:00
Breaking-104839-RTEProcessingConfigurationRespectsRemoveTags.rst:3Replysigh. thx. -
core-ci voted on patch set 4 V +1 09/12/24, 14:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/65574
-
Benni Mack commented on patch set 4 09/12/24, 15:06
IMHO this is a valid bugfix. However, I've seen people going nuts with the CKEditor5 font plugin ("TYPO3 Christmas Tree Edition"). I suggest to actually make the default of "removeTags" empty in v13 and enable them (breaking) in v14. -
Garvin Hicking commented on patch set 4 09/12/24, 15:46
Reply
In that case I would: - remove font (and center?) in this patch, so it's kept - but keep the other tags that really should be cleared (theoretically breaking, but IMO no real-life impact (style, title, o:p,...) - so we'd keep the "breaking" intact just in cass, also to alert people that this never worked - announce that v14 will als add font (and center) with "real-life" impact chance Then create a seperate follow-up for v14 and add "font" (and center) back again, the with the "real" breakage. wdyt? -
Oliver Hader commented on patch set 4 09/12/24, 17:16
Reply
Sound good to me... thus, from my POV the remaining setting would be ``` removeTags: [link, meta, o:p, sdfield, style, title] ``` All of those tag names are not allowed in blocks, or are not part of the specs (I guess `sdfield` refers to LibreOffice?). Thus, I think this change would be just "important" instead of "breaking", correct? -
Garvin Hicking uploaded patch set 5
V +109/12/24, 21:29Change to Important instead Breaking -
Garvin Hicking commented on patch set 5 09/12/24, 21:31
Reply
I've relabelled this patch as "Important" again and adjusted the tests, commit message and ReST file. How would we store the ReST file? Putting it into "13.3" would make backporting odd. Putting it into "12.4" might not alert people who only read the 13.3 changelogs. What's the usual procedure then? Add a stub in "13.3" that just points to the entry in "12.4"? -
core-ci voted on patch set 5 V +1 09/12/24, 21:37 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/65608
-
Garvin Hicking uploaded patch set 6
V +109/18/24, 11:54Move ReST -
Garvin Hicking commented on patch set 6 09/18/24, 11:55
Reply
Moving CL to 12.4.x directory. Adapted to add a v11 note.Reply
DoneMoved the ReST to 12.4.x, adapted wording a bit and dropped a v11 note. -
core-ci voted on patch set 6 V +1 09/18/24, 12:13 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/66129
-
Benni Mack voted on patch set 6 CR +1 V +1 09/19/24, 10:08
-
Guido Schmechel voted on patch set 6 CR +1 10/01/24, 16:22
-
Simon Praetorius voted on patch set 6 CR +1 10/01/24, 16:23
-
Oliver Hader voted on patch set 6 CR +1 V +1 10/02/24, 11:46
-
Garvin Hicking voted on patch set 6 CR +2 V +2 10/02/24, 13:02
-
Garvin Hicking merged patch set 7 10/02/24, 13:03