Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-68070

Incorrect Content type for text email notification

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Low
    • Notification - Email
    • None

    Description

      Summary

      Since the 28th of September JIRA sends the text-only emails as:
      Content-type: multipart/alternative;

      Instead of 
      Content-Type: text/plain;
       

      This was working as expected before

      Steps to Reproduce

      • Navigate to https://<instance-name>.atlassian.net/secure/ViewProfile.jspa
      • Under Preferences section, please set as below
        • Email type: Text
        • My changes: Notify me
      • Create a new project or use an existing project
      • Ensure the notification scheme of that project will send notification accordingly for Issue Created events
      • Create a test issue

      Expected Results

      • You get a text-only email having Content-type set to: text/plain

      Actual Results

      You receive a multi-part message (Content type: multipart/alternative):

      Delivered-To: xxxxxx@gmail.com
      ....
      Date: Tue, 21 Nov 2017 06:07:19 +0000 (UTC)
      From: "xxxxxxxxx (Jira)" <jira@xxxxxxxx-test.atlassian.net>
      To: xxxxx@gmail.com
      Message-ID: <JIRA.10002.1511244438000.ca2a09a0-7212-458b-9d3f-f36f49885778.1511244438882@Atlassian.JIRA>
      In-Reply-To: <JIRA.10002.1511244438000@Atlassian.JIRA>
      References: <JIRA.10002.1511244438000@Atlassian.JIRA> <JIRA.10002.1511244438601@52d63279c4a4>
      Subject: [JIRA] (THUN-3) Testing Thunderbird Notification
      MIME-Version: 1.0
      X-JIRA-FingerPrint: bcca58df8f61c0c49ce2d025946781ae
      Auto-Submitted: auto-generated
      Precedence: bulk
      Content-type: multipart/alternative; boundary="----------=_1511244439-28242-14"
      X-SG-EID: 5iIfjSddl2mL8edNXfnjFlG2RwLTy48em/bUWla9ytZgJJllW2LiJIDseSvI1TPqop1y+yu94VgGk/
       UimKST9D3xKASiS6TjdAV6ObMV0SBc/IEdoX5i5RPAZNeeLvkVSPdeZEXsXefpE042Vxm/Wr4ycymA
       h3VOfrXWSlUp6amoIInaEp2HxAWE9pAzOx8FO88/JFDXfrmiwVT5ErR6w02kpBF3/xLwhAwwiEjZvK
       J6zegV+DrFrY/J67SHE3F+NsxaYrMs8azyGYjar/K32Q==
      X-Feedback-ID: 4043402:5rXR2CC5i6xQXF3ZviANI3CKVa/1XwB/OQGDu1WVXf8=:5rXR2CC5i6xQXF3ZviANI3CKVa/1XwB/OQGDu1WVXf8=:SG
      
      This is a multi-part message in MIME format...
      
      ------------=_1511244439-28242-14
      Content-Type: text/plain; charset=UTF-8
      Content-Transfer-Encoding: 7bit
      
      Ahmad Azmir Md Zan created THUN-3:
      -------------------------------------
      
                   Summary: Testing Thunderbird Notification
                       Key: THUN-3
                       URL: https://xxxxxxxx.atlassian.net/browse/THUN-3
                   Project: Thunderbird
                Issue Type: Bug
                  Reporter: Ahmad Azmir Md Zan
                  Assignee: Ahmad Azmir Md Zan
      
      
      Testing Thunderbird Notification
      
      
      
      --
      This message was sent by Atlassian Jira
      (v1001.0.0-SNAPSHOT#100072)
      
      ------------=_1511244439-28242-14
      Content-Type: text/html; charset="UTF-8"
      Content-Disposition: inline
      Content-Transfer-Encoding: 7bit
      
      <html><body>
      <h3>Ahmad Azmir Md Zan created THUN-3:</h3>
      <pre>   Summary: Testing Thunderbird Notification
             Key: THUN-3
             URL: https://xxxxxxxx.atlassian.net/browse/THUN-3
         Project: Thunderbird
      Issue Type: Bug
        Reporter: Ahmad Azmir Md Zan
        Assignee: Ahmad Azmir Md Zan</pre>
      <p>Testing Thunderbird Notification</p>
      <p>&mdash; This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100072)</p>
      
      <img src="https://u4043402.ct.sendgrid.net/wf/open?upn=GPnyJHDWM0v1-2FAHjTxRj3-2BESglm4doRwrGsX4L7Et2DbXVbPYfiJ8uc8kejp0dhz5B2MnCQQR5QBGAvAagz6Z1mVzo-2FfTbaTBSL9dnqEdxMnTJhxNt-2B8zpnU1CdKjw4TZfFxkekPkdW04eiw-2FGSofAII03i-2F6ucr7CnWjInNdpEFHzGJ8c5xxDS7Qx8EnXIrwyWE8h6D-2BOzmIYjMkAUrPIIQdIeBfL19s-2BqcarBQEUw-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
      </body></html>
      

      Notes

      As a result of this, some email clients (e.g. Thunderbird) are not correctly rendering the links in JIRA notifications (that are not clickable anymore).

      Attachments

        Issue Links

          Activity

            People

              ohookins@atlassian.com Oliver Hookins (Inactive)
              amdzan Azmir Zan (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: