Skip to content

fix(Collaboration): Allow to enforce strict email format on sharees API - #45425

Closed
susnux wants to merge 1 commit into
masterfrom
fix/allow-strict-email
Closed

fix(Collaboration): Allow to enforce strict email format on sharees API#45425
susnux wants to merge 1 commit into
masterfrom
fix/allow-strict-email

Conversation

@susnux

@susnuxsusnux commented May 21, 2024

Copy link
Copy Markdown
Contributor

Summary

Only recommend a email address as sharee if it satisfies the strict format checking. Meaning before a@b was valid, while now with strict checking it is invalid and needs to be at least a@b.c

Screenshots

beforeafter
Screenshot_20240521_174514Screenshot_20240521_174502

Checklist

@susnux

Copy link
Copy Markdown
ContributorAuthor

@AndyScherzinger this would fix the email share issue

@susnux
susnux requested review from Altahrim and yemkareemsMay 21, 2024 19:03
@susnuxsusnux added bug 3. to review Waiting for reviews labels May 21, 2024
@susnuxsusnux added this to the Nextcloud 30 milestone May 21, 2024
@susnux
susnux marked this pull request as ready for review May 21, 2024 19:04
@susnux
susnuxforce-pushed the fix/allow-strict-email branch from 1070d96 to 0c0e296CompareMay 21, 2024 19:04
@susnux

Copy link
Copy Markdown
ContributorAuthor

Should we add an UI toggle?

@AndyScherzinger

Copy link
Copy Markdown
Member

Should we add an UI toggle?

Don't think that is needed. A config value is just fine. This is nothing that gets changed, you chose one or the other (forever) I suppose.

Comment threadlib/private/Collaboration/Collaborators/MailPlugin.php Outdated
@susnux
susnux requested a review from AltahrimMay 22, 2024 10:06
Only recommend a email address as sharee if it satisfies the strict format checking.
Meaning before `a@b` was valid, while now with strict checking it is invalid and needs
to be at least `a@b.c`
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnuxforce-pushed the fix/allow-strict-email branch from 136bfef to a08575cCompareMay 22, 2024 10:07

@come-nccome-nc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A bit weird that the config switch only applies to shareapi and not more globally to email validation.

@susnux

Copy link
Copy Markdown
ContributorAuthor

A bit weird that the config switch only applies to shareapi and not more globally to email validation.

@come-nc should I change this? I would be fine with that. Would be even more clean :)

@susnux

Copy link
Copy Markdown
ContributorAuthor

See: #45570

@susnux

Copy link
Copy Markdown
ContributorAuthor

Closed in favor of #45570

@susnuxsusnux closed this Jun 4, 2024
@susnux
susnux deleted the fix/allow-strict-email branch June 4, 2024 12:04
@skjnldsvskjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@susnux@AndyScherzinger@Altahrim@come-nc@skjnldsv