Email Notifications are not properly encoded when the message contains non us-ascii characters.

Description

I made a lot of tests using non us-ascii characters that they came from bad-encoded events produced by Trapd, or from notifications written with a language different from english like spanish or french; and the result is always the same: the emails sent by Notifd are unreadable.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Alejandro Galue May 16, 2011 at 10:43 AM

Fixed on 1.8 at ee5fa436f40cb0a0e543b438799a35227fe5366c, and cherry-picked on master at e9956266df8c09ed71966435174107754409d7e5

Alejandro Galue May 16, 2011 at 10:39 AM

I analyzed the code and I've tracked down the source of the problem. The email notification strategy was using a class called JavaMailer to send email notifications. That class was encoding the message content using a method called encodeText from the MimeUtility class, which is not really necessary.

I commented the usage of MimeUtility on the JavaMailer's code and now the notifications are readable no matter if they are using special characters generated by Trapd or by using a foreign language.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created May 16, 2011 at 10:31 AM
Updated January 27, 2017 at 4:20 PM
Resolved May 16, 2011 at 10:39 AM