[random test failure] EditorSecurityTest::testEditorXssFilterOverride

Created on 29 December 2024, 23 days ago

Problem/Motivation

    Editor Security (Drupal\Tests\editor\Functional\EditorSecurity)
     βœ” Initial security
     βœ” Switching security
     ✘ Editor xss filter override
       ┐
       β”œ Behat\Mink\Exception\ExpectationException: The field "edit-body-0-value" value is "Hello, Dumbo Octopus!alert(0)", but "Hello, Dumbo Octopus!alert(0)" expected.
       β”‚
       β”‚ /builds/issue/drupal-3069442/vendor/behat/mink/src/WebAssert.php:888
       β”‚ /builds/issue/drupal-3069442/vendor/behat/mink/src/WebAssert.php:781
       β”‚ /builds/issue/drupal-3069442/core/tests/Drupal/Tests/WebAssert.php:991
       β”‚ /builds/issue/drupal-3069442/core/modules/editor/tests/src/Functional/EditorSecurityTest.php:454
       β”΄
    
    FAILURES!
    Tests: 3, Assertions: 131, Failures: 1.

Steps to reproduce

Example: https://git.drupalcode.org/issue/drupal-3069442/-/jobs/3468066#L1429

Proposed resolution

Replace calls to State with calls to KeyValue.

The root cause of this issue is discussed in πŸ› Race conditions/bad lock logic in CacheCollector/State Active

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

phpunit

Created by

πŸ‡³πŸ‡±Netherlands spokje

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024