-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
handle mail send error gracefully #12636
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
Conversation
|
/backport to stable15 |
|
/backport to stable14 |
ChristophWurst
left a comment
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?
ChristophWurst
left a comment
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 <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
50860b8 to
8cc2ee6
Compare
ChristophWurst
left a comment
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 <[email protected]>
8cc2ee6 to
7e3e3be
Compare
MorrisJobke
left a comment
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