Content-Type tag wrong in emailed reports

Description

setup the early morning report to run and email at 5:00am. I can open the report from the webpage via okular and my iphone renders it correctly. My thunderbird and zimbra mail clients failed to render the pdf. When I looked into it the pdf the following:
Content-Type: text/plain; name="local_Early-Morning-Report wes.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="local_Early-Morning-Report wes.pdf

A properly rendered pdf had :
Content-Type: application/pdf;
name="SB9719.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="SB9719.pdf"

I'm guessing the "Content-Type" should be app/pdf and not text/pdf for proper rendering in my mail client

Environment

Version: 17.0.0 Server Time: Thu Jan 26 10:16:47 EST 2017 Client Time: Thu Jan 26 2017 10:16:47 GMT-0500 (EST) Java Version: 1.8.0_65 (Oracle Corporation) Java Runtime: Java(TM) SE Runtime Environment (1.8.0_65-b17) Java Specification: Java Platform API Specification (Oracle Corporation, 1.8) Java Virtual Machine: Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation, 25.65-b01) Java Virtual Machine Specification: Java Virtual Machine Specification (Oracle Corporation, 1.8) Operating System: Linux 4.1.36-44-default (amd64) Servlet Container: jetty/8.1.10.v20130312 (Servlet Spec 3.0) User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 Database Type: PostgreSQL Database Version: 9.3.11

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Christian Pape August 22, 2018 at 2:25 PM

Changed the base branch to foundation-2017.

Christian Pape August 22, 2018 at 2:00 PM

Added correct Content-Type in the JavaMailer class. Please review, test and merge:

Seth Leger April 3, 2017 at 3:40 PM

I noticed this the other day too in Thunderbird. HTML reports also failed to render as HTML so their MIME type might need to be changed as well.

Fixed

Details

Assignee

Reporter

Components

Sprint

Affects versions

Priority

PagerDuty

Created January 26, 2017 at 10:22 AM
Updated August 23, 2018 at 4:13 PM
Resolved August 23, 2018 at 4:13 PM