Bug 1011310 - Unhandled exception: Mail service is down
Unhandled exception: Mail service is down
Product: Zanata
Classification: Community
Component: Component-Logic (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: 3.5
Assigned To: Patrick Huang
Damian Jansen
Depends On:
Blocks: 994362
  Show dependency treegraph
Reported: 2013-09-24 00:33 EDT by Damian Jansen
Modified: 2015-01-26 18:27 EST (History)
1 user (show)

See Also:
Fixed In Version: 3.5.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-1802)
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-01-26 18:27:40 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Damian Jansen 2013-09-24 00:33:05 EDT
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):

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
Comment 1 Patrick Huang 2014-07-28 22:49:38 EDT
Comment 2 Damian Jansen 2014-07-30 22:07:29 EDT
Comment 3 Sean Flanigan 2014-11-10 01:32:37 EST
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

Note You need to log in before you can comment on or make changes to this bug.