Skip to content

Conversation

@skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Jul 9, 2025

Summary

Not 100% sure this is the best in terms of code quality, but seems the most straightforward 🤷

Checklist

@skjnldsv skjnldsv added this to the Nextcloud 32 milestone Jul 9, 2025
@skjnldsv skjnldsv self-assigned this Jul 9, 2025
@skjnldsv skjnldsv force-pushed the fix/lower-email-case branch 3 times, most recently from 2e013c3 to de53ca4 Compare July 10, 2025 06:56
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv force-pushed the fix/lower-email-case branch from de53ca4 to 027471b Compare July 10, 2025 07:13
@skjnldsv skjnldsv marked this pull request as ready for review July 10, 2025 09:34
@skjnldsv skjnldsv requested a review from a team as a code owner July 10, 2025 09:34
@skjnldsv skjnldsv requested review from Altahrim, ArtificialOwl and come-nc and removed request for a team July 10, 2025 09:34
@skjnldsv skjnldsv added the 3. to review Waiting for reviews label Jul 10, 2025
@skjnldsv skjnldsv requested a review from provokateurin July 10, 2025 09:35
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically wrong, accepted in reality 🤷‍♀️

*/
public function setSystemEMailAddress(string $mailAddress): void {
$oldMailAddress = $this->getSystemEMailAddress();
$mailAddress = mb_strtolower(trim($mailAddress));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is enough, you do not need to add calls to mb_strtolower prior to calling this method, no?
Feels like you added the conversion both outside and inside of the setter. Inside is enough IMO

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's because the email/value is sometimes also used at later stages of the parent methods.
So the setter is nice, but not enough

@skjnldsv skjnldsv merged commit 1bc1902 into master Jul 11, 2025
207 of 210 checks passed
@skjnldsv skjnldsv deleted the fix/lower-email-case branch July 11, 2025 07:03
@skjnldsv
Copy link
Member Author

/backport to stable31

@skjnldsv
Copy link
Member Author

/backport to stable30

@provokateurin
Copy link
Member

The psalm baseline was not adjusted:

ERROR: UnusedBaselineEntry
at :0:0
Baseline for issue "DeprecatedMethod" has 1 extra entry. (see https://psalm.dev/316)

PR will follow in a few seconds.

@provokateurin provokateurin mentioned this pull request Jul 14, 2025
4 tasks
@skjnldsv
Copy link
Member Author

skjnldsv commented Jul 14, 2025

The psalm baseline was not adjusted:

ERROR: UnusedBaselineEntry
at :0:0
Baseline for issue "DeprecatedMethod" has 1 extra entry. (see https://psalm.dev/316)

PR will follow in a few seconds.

Weird, it didn't complain on CI and I did run a baseline update (you can see it in the changed files)
What should I have done to catch this?

@provokateurin
Copy link
Member

I'm not sure either, it's a bit weird. I think it might just be psalm doing weird things again.

@unvermuthet
Copy link

Does this fix #53367 if I have existing users with capitalized mail addresses?

@skjnldsv
Copy link
Member Author

skjnldsv commented Aug 8, 2025

Does this fix #53367 if I have existing users with capitalized mail addresses?

I think it should, we'll be happy to have some feedback if you can try the RC1 releases of yesterday :)

@skjnldsv skjnldsv mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Uppercase Letters in Email Addresses Cause Login and Email Delivery Issues

5 participants