Skip to content

Conversation

@mickenordin
Copy link
Contributor

It seems primary email can sometimes be empty, even if the user has an email set.

This patch should fix that so that we always have an email if it exists.

It seems primary email can sometimes be empty, even if the user has an email set.

Signed-off-by: Micke Nordin <[email protected]>
@mickenordin mickenordin requested a review from a team as a code owner June 12, 2025 15:02
@mickenordin mickenordin requested review from artonge, leftybournes and nfebe and removed request for a team June 12, 2025 15:02
@AndyScherzinger AndyScherzinger added this to the Nextcloud 32 milestone Jun 12, 2025
@AndyScherzinger AndyScherzinger added bug 3. to review Waiting for reviews labels Jun 12, 2025
@AndyScherzinger AndyScherzinger merged commit e6209d9 into nextcloud:master Jun 12, 2025
173 of 188 checks passed
@blizzz
Copy link
Member

blizzz commented Jun 13, 2025

I think this PRs introduces the failing tests:

Screenshot_20250613_151505

@provokateurin
Copy link
Member

Yeah the CI of this PR was red when @AndyScherzinger merged it :/

@mickenordin
Copy link
Contributor Author

It is not clear to me what should be the correct way of getting the mail address. getPrimaryEMail sounds so correct, but the code comments seem to indicate that getEMailAddress is the one to be used in reality, and when the code was used at SURF the primary email was empty even when an email was set (which was not the case when I tested it).

So either we need to do some more if-then-clauses to try to get the primary email and fallback to getEMAil if that fails, or it is just the case that the test now fails for some reason, but the code is correct, and we need to fix the test.

@nickvergessen
Copy link
Member

But in general I'm not sure about the code change.

@github-actions
Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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.

7 participants