-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat (contacts): format/clean emails of carddav #51478
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe instead of do server side sanitizing its better to only do this client side and on server do not sanitize but validate.
Meaning instead you could throw bad request when \OCP\Mail\IMailer::validateMailAddress
fails for a mail address
Yeah the problem is that davclients are very diverse and seemingly none do this email sanitize. I agree will implement 👍. But we need to somehow inform the user when and why sync requests fail. |
Hi @timedin-de I agree with @susnux we should not sanitize or manipulate the data in the storage layer (CardDavBackend) this should be done further up in the chain, probably at the entry point to the server. The user can be informed with a 400 error and a custom message of the issue. |
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: TimedIn <git@timedin.net>
@susnux @SebastianKrupinski So i hope i've met both you recommendations:
![]() For Website this works quite good even without the frontend changes. DavX⁵ seems to abort the whole sync process for all contacts :/ |
fix: dont remove spaces in email: nextcloud/server#51478 (comment) Signed-off-by: TimedIn <git@timedin.net>
fix: dont remove spaces in email: nextcloud/server#51478 (comment) Signed-off-by: TimedIn <git@timedin.net>
maybe open a issue on DavX |
Signed-off-by: TimedIn <git@timedin.net>
Summary
TODO
Checklist