Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
#2418119: REST user updates bypass tightened user account change validation accidentally introduced a dependency on the php intl extension by using the class AbstractConstraintValidatorTest provided by the validator as base class. The causing test is ProtectedUserFieldConstraintValidatorTest
.
Proposed resolution
Change the test to use another base class.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#6 | d8_fix_without_intl.patch | 2.34 KB | fago |
#5 | d8_fix_without_intl.interdiff.txt | 881 bytes | fago |
#5 | d8_fix_without_intl.patch | 7.56 KB | fago |
#3 | d8_fix_without_intl.patch | 2.37 KB | fago |
Comments
Comment #1
fagoComment #2
klausino data loss, security, unusable system and the testbot does not fail on this, so not critical.
Comment #3
fagoI'd say it's critical if d8 does not work with the documented system requirements, but whatever priority - this should fix it.
Comment #4
klausiIt only affects the documented system requirements for running phpunit tests, which is unfortunate but not a stop gap.
empty setUp() method that just calls the parent and can be removed?
Comment #5
fagoRight, that became unneeded.
ok with me.
Comment #6
fagoCorrecting patch file, interdiff was correct.
Comment #7
neclimdulI don't see a problem with this.
Comment #8
YesCT CreditAttribution: YesCT commentedIn head when I run all the phpunit tests, I get
Fatal error: Class 'Locale' not found in /Users/ctheys/foo/drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php on line 85
with the patch I get
There was 1 error:
1) Drupal\Tests\Core\Image\ImageTest::testRotate
imagecolorallocatealpha() expects parameter 1 to be resource, null given
/Users/ctheys/foo/drupal/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php:60
/Users/ctheys/foo/drupal/core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php:177
/Users/ctheys/foo/drupal/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php:127
/Users/ctheys/foo/drupal/core/lib/Drupal/Core/Image/Image.php:148
/Users/ctheys/foo/drupal/core/lib/Drupal/Core/Image/Image.php:190
/Users/ctheys/foo/drupal/core/tests/Drupal/Tests/Core/Image/ImageTest.php:455
FAILURES!
Tests: 7631, Assertions: 40525, Errors: 1, Incomplete: 2.
Maybe that is just my local though?
Comment #9
webchickCan anyone confirm/deny #8?
Comment #10
YesCT CreditAttribution: YesCT commentedI changed my php version from PHP 5.5.14 to PHP 5.6.2
and then it ran fine.
Tests: 7631, Assertions: 40527, Incomplete: 2.
Comment #11
neclimdulI can't reproduce this. On IRC YesCT mentioned doing a composer up so its possible she had some other code changes? At the very least the code in her failure is not related to this fix so i think its safe to handle separately if it is in fact reproducible.
Comment #12
BerdirCan't reproduce that fail, the patch fixes the Locale fatal error for me and everything else passes. @YesCT, can you open a new issue for that and report your exact PHP version and also the version of your gd extension?
Comment #13
YesCT CreditAttribution: YesCT commentedsure thing.
#2464023: Move GD-specific code from Rotate::validateArguments() to Rotate::execute()
Comment #14
webchickGreat, let's get this one out of the way.
Committed and pushed to 8.0.x. Thanks!