Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

susnux
Copy link
Contributor

@susnux susnux commented May 21, 2024

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

before after
Screenshot_20240521_174514 Screenshot_20240521_174502

Checklist

@susnux
Copy link
Contributor Author

susnux commented May 21, 2024

@AndyScherzinger this would fix the email share issue

@susnux susnux requested review from Altahrim and yemkareems May 21, 2024 19:03
@susnux susnux added bug 3. to review Waiting for reviews labels May 21, 2024
@susnux susnux 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 susnux force-pushed the fix/allow-strict-email branch from 1070d96 to 0c0e296 Compare May 21, 2024 19:04
@susnux
Copy link
Contributor Author

susnux commented May 21, 2024

Should we add an UI toggle?

@AndyScherzinger
Copy link
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.

@susnux susnux requested a review from Altahrim May 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 susnux force-pushed the fix/allow-strict-email branch from 136bfef to a08575c Compare May 22, 2024 10:07
Copy link
Contributor

@come-nc come-nc left a comment

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
Contributor Author

susnux commented May 28, 2024

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
Contributor Author

susnux commented May 29, 2024

See: #45570

@susnux
Copy link
Contributor Author

susnux commented Jun 4, 2024

Closed in favor of #45570

@susnux susnux closed this Jun 4, 2024
@susnux susnux deleted the fix/allow-strict-email branch June 4, 2024 12:04
@skjnldsv skjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants