- Issue created by @xjm
- πΊπΈUnited States benjifisher Boston area
xjm β credited benjifisher β .
- π§πͺBelgium BramDriesen Belgium π§πͺ
xjm β credited bramdriesen β .
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
xjm β credited larowlan β .
- π¬π§United Kingdom mcdruid π¬π§πͺπΊ
xjm β credited mcdruid β .
- πΊπΈUnited States xjm
Adding credits for folks who contributed to the development and review of the tests on the private issue.
- Merge request !12377#3530149: Add tests from private issue for SA-CORE-2025-004. β (Closed) created by xjm
- πΊπΈUnited States xjm
Looks like the string typehinting worked. However, I found a newer version of the tests with additional test coverage in a private repo that was not posted to the private issue as directly. Will update the MR shortly.
- π¬π§United Kingdom alexpott πͺπΊπ
xjm β credited alexpott β .
- πΊπΈUnited States xjm
Adding credits from additional reviewers on the private MR.
- πΊπΈUnited States xjm
The things are green. I gave the tests a quick once-over and they look in order to me.
- First commit to issue fork.
- πΊπΈUnited States smustgrave
Opened an MR with 2024-004 revert
Unit test fails with
Line core/modules/link/tests/src/Unit/AttributeXssTest.php ------ --------------------------------------------------------------------- 16 @covers value \Drupal\link\AttributeXss references an invalid class or function. πͺͺ phpunit.covers 24 Call to static method sanitizeAttributes() on an unknown class Drupal\link\AttributeXss. πͺͺ class.notFound π‘ Learn more at https://phpstan.org/user-guide/discovering-symbols
kernel tests don't run is it needed to opened a 3rd MR without the unit test?
- πΊπΈUnited States smustgrave
smustgrave β changed the visibility of the branch 3530149-revert-changes-2024-004 to hidden.
- πΊπΈUnited States smustgrave
Deleted the Unit test from my MR since we saw it fail, lets see if the kernel does now.
- πΊπΈUnited States smustgrave
kernel failed
FF 2 / 2 (100%) Time: 00:04.448, Memory: 8.00 MB Link Formatter (Drupal\Tests\link\Kernel\LinkFormatter) β Link formatter with defaultΒ·formatter β β Failed asserting that 'Hello world' [ASCII](length: 101) contains "" [ASCII](length: 49). β β /builds/issue/drupal-3530149/core/modules/link/tests/src/Kernel/LinkFormatterTest.php:118 β΄ β Link formatter with separateΒ·linkΒ·textΒ·andΒ·URL β β Failed asserting that 'Hello world\n β https://www.drupal.org/\n β ' [ASCII](length: 126) contains "" [ASCII](length: 49). β β /builds/issue/drupal-3530149/core/modules/link/tests/src/Kernel/LinkFormatterTest.php:118
MenuLinkTest failed with
β β Failed asserting that 'Link test' [ASCII](length: 99) contains "" [ASCII](length: 49). β β /builds/issue/drupal-3530149/core/modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php:505
So believe this shows the test coverage is good
- π¬π§United Kingdom catch
Committed/pushed to 11.x and cherry-picked to 11.2.x, since this cherry-picked cleanly also cherry-picked back to 10.6.x - it might help if we need to adjust this again and backport that, thanks!
- πΊπΈUnited States xjm
I think this also belongs in 10.5.x, but after having had an oopsidaisy with the other issue, will double-check the pipeline first.
- πΊπΈUnited States xjm
I think this might be broken on 10.6.x, so let's try a revert and a 10.6.x MR.
- πΊπΈUnited States xjm
Apparently it was unrelated. So let's try again with the backport to 10.6.x and 10.5.x.
- Merge request !12559Issue #3530149 by xjm, smustgrave, larowlan, bramdriesen, benjifisher,... β (Closed) created by xjm
- πΊπΈUnited States xjm
Both backports pass, so it was still lingering issues from the other bad backports. So, committing these backports now.
- πΊπΈUnited States xjm
Back to fixed, this time providing test coverage on all four branches. Thanks!