- last update
over 1 year ago 2,120 pass, 1 fail - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,122 pass - Merge request !7479Issue #3032209: Allow users to update their settings regardless of duplicate email addresses in the users table β (Open) created by poker10
- last update
9 months ago 2,180 pass - πΈπ°Slovakia poker10
I have copied the patch from #5 to MR and added one additional test case to confirm/deny my statement from #5 about MySQL/SQLite.
Seems like the test results are consistent on all PHP/SQL combinations and that the test is failing both with different cased letters and same cased letters. See the complete results here: https://git.drupalcode.org/project/drupal/-/pipelines/145289
So it seems like that my previous statement from #5
This patch will not fix the situation (in MySQL, SQLite),
is not correct. The PHP comparision does not make any difference, because we are comparing the user email address with the email address submitted by the form - and these two should be equal in every case when user is not changing email. I think I was confused and though that we are comparing the duplicate email instead of user email. Therefore I think the patch looks good and it is ready for review.
- π¬π§United Kingdom mcdruid π¬π§πͺπΊ
This looks good.
I thought I'd spotted a tiny problem in the test because the docs for
\DrupalTestCase::randomName()
say:/** * Generates a random string containing letters and numbers. * * The string will always start with a letter. The letters may be upper or * lower case.
If that was literally true, the test may not always be doing exactly what we want it to.
However, the first letter will actually always be lowercase:
$str = chr(mt_rand(97, 122));
...so the problem there is slightly misleading documentation, rather than a bug in the new test here.
We could fix the docs in a follow-up, but it's not a top priority.
-
mcdruid β
committed f2bbc37d on 7.x
Issue #3032209 by poker10, hadsie, Fabianx, mcdruid: Allow users to...
-
mcdruid β
committed f2bbc37d on 7.x
- Status changed to Fixed
7 months ago 4:09pm 31 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.