? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
26 Sep 2016

Summary of Changes

Remove the internal handling of exceptions thrown by the PHPMailer API in JMail. This changes the behavior so that when exception throwing is turned on (default yes) exceptions will be thrown by the API and when disabled boolean values are returned. This is consistent with the parent API's behavior.

Testing Instructions

Mail sending still functions as intended. When exception handling is disabled boolean values are still handled.

Note: We probably need to turn on exception handling in core's mail sending functions otherwise these will bubble to something catching the base Exception class or the global handler which triggers the error page.

Documentation Changes Required

Error handling behavior changed.

avatar mbabker mbabker - open - 26 Sep 2016
avatar mbabker mbabker - change - 26 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Sep 2016
Category Libraries
avatar joomla-cms-bot joomla-cms-bot - change - 26 Sep 2016
Labels Added: ?
avatar zero-24 zero-24 - change - 26 Sep 2016
Labels Added: ?
avatar zero-24 zero-24 - change - 26 Sep 2016
Milestone Added:
avatar wilsonge
wilsonge - comment - 26 Sep 2016

I'm going to leave this here for now so we can work out what actually needs exception catching in the API around email sending

avatar roland-d
roland-d - comment - 19 Aug 2017

Are we going anywhere with this?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12179.

avatar brianteeman
brianteeman - comment - 4 Jan 2018

@wilsonge this is waiting on you

avatar mbabker
mbabker - comment - 10 Apr 2018

Rebased, I'm now at a "take it or leave it" spot with this one. Got enough architecture work on my hands to really care much about keeping up with this one.

avatar wilsonge
wilsonge - comment - 10 Apr 2018

We need to add some basic exception handling around the places we are using our mailer. Having user registration, for example, fail all the way to our exception handler page because a mail couldn't be sent cannot be correct behaviour. Of course I approve us removing these - but we cannot merge this as is right now.

avatar mbabker
mbabker - comment - 2 Jun 2018

If someone else wants to take this on, have at it. Otherwise, I'm overbooked and getting people to deal with architecture related stuff seems difficult.

avatar mbabker mbabker - change - 2 Jun 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-06-02 01:14:29
Closed_By mbabker
avatar mbabker mbabker - close - 2 Jun 2018
avatar jonasgonka
jonasgonka - comment - 26 Jul 2018

@mbabker,
We have picked up this issue and are working one handling all the Exceptions in the places that use the mailer.
At the moment we handle them like this:
mialexceptionhandling

However we were wondering if the way we are handling them is optimal or if there is a better way to deal with them, and also if the exception categories/types are appropriate.

avatar joomla-cms-bot joomla-cms-bot - change - 26 Jul 2018
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 26 Jul 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Jul 2018

can't be reopened as Branch is deleted.

avatar jonasgonka
jonasgonka - comment - 26 Jul 2018

We have created out own branch on this repository.
We plan to open a new PR when we have more work done on this in the next days.

avatar roland-d
roland-d - comment - 26 Jul 2018

It is not to be re-opened but asking for feedback.

avatar mbabker
mbabker - comment - 26 Jul 2018

Looks fine for now

Add a Comment

Login with GitHub to post a comment