Description of problem: If, for whatever reason, the localhost mail server is down/malfunctioning, a user trying to register is presented with the "We're Sorry ... Invalid Transaction" page. In the event of a mail send failure, it should display an inline "The system is on fire! Please contact the administrator!" error. Version-Release number of selected component (if applicable): 3.0.3 How reproducible: Moderate always Steps to Reproduce: 1. sudo service postfix stop 2. Go to localhost:port/zanata/account/register 3. Fill out and Submit Actual results: Exception screen Expected results: Something else Additional info: Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972) [mail-1.4.5-redhat-1.jar:1.4.5-redhat-1] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642) [mail-1.4.5-redhat-1.jar:1.4.5-redhat-1] at javax.mail.Service.connect(Service.java:295) [mail-1.4.5-redhat-1.jar:1.4.5-redhat-1] at javax.mail.Service.connect(Service.java:176) [mail-1.4.5-redhat-1.jar:1.4.5-redhat-1] at javax.mail.Service.connect(Service.java:125) [mail-1.4.5-redhat-1.jar:1.4.5-redhat-1] at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:167) [jboss-seam-mail-2.3.1.Final.jar:2.3.1.Final] ... 106 more
https://github.com/zanata/zanata-server/pull/544
Verified
At least the old message included the SMTP host and port. The new version has a friendlier message, but there's no need to discard the original information. See https://github.com/zanata/zanata-server/pull/632