-
Notifications
You must be signed in to change notification settings - Fork 264
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 sending erroneous message repeatedly #6602
Conversation
$schema = $schemaClosure(); | ||
|
||
$localMessageTable = $schema->getTable('mail_local_messages'); | ||
$localMessageTable->addColumn('failed', 'boolean', [ |
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.
Does it make sense to add another column here to store some details about the error?
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.
We can, but how and what shall we store? The raw exception message can't be localized. We would need to have some specific errors that can be processed for the user, e.g. "Invalid recipient", then define error codes for them and show localized messages to the user.
As a first measure to prevent the endless resending of messages I would keep it simple and just have the boolean flag.
8181f2f
to
660a657
Compare
/backport to stable1.13 |
/backport to stable1.12 |
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.
Tested and works. Already looked at the code earlier.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
b75275d
to
0b0e905
Compare
Fixes #6540
Steps to test
invalid
Master: message is attempted to be sent again
Here: message is not sent a second time