-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
handle mail send error gracefully #12636
Conversation
/backport to stable15 |
/backport to stable14 |
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.
Typo 😉
Is the returned bool used?
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.
Result is never checked.
Ref
server/lib/private/Share20/Manager.php
Lines 687 to 694 in 0f8de6e
$this->sendMailNotification( | |
$l, | |
$share->getNode()->getName(), | |
$this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNode()->getId()]), | |
$share->getSharedBy(), | |
$emailAddress, | |
$share->getExpirationDate() | |
); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
typo fixed |
log the error in case a notification mail of a new share couldn't be send to the recipient and finish the share operation successfully Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
50860b8
to
8cc2ee6
Compare
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.
I'm fine with @schiessle's changes as this method is solely used in this class 👍
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
8cc2ee6
to
7e3e3be
Compare
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.
Code looks good 👍
backport to stable15 in #13930 |
backport to stable14 in #13931 |
log the error in case a notification mail of a new share couldn't
be send to the recipient and finish the share operation successfully
I would suggest to backport it at least to stable15 and stable14
fix #12597