Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-26316

"Contact Administrators" email contains un-interpolated variables

    XMLWordPrintable

Details

    Description

      I was testing the "Contact Administrators" form, and noticed that the emails coming back looked a little strange. Here's what I found in the message source:

      <div id="email-body">
      <table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
          <tr valign="top">
              <td id="email-page" style="padding:16px !important;">
                  <table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
                      <tr valign="top">
                          <td bgcolor="${topBackgroundColour}" style="background-color:${topBackgroundColour};color:${topTxtColour};font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="$textutils.htmlEncode($jiraLogoUrl)" alt="" style="vertical-align:top;" /></td>
                      </tr>
      <br/>
      <table cellpadding="1" cellspacing="0" border="0" bgcolor="#bbbbbb" width="100%" align="center"><tr><td>
      <table cellpadding="4" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
      
      <tr bgcolor="#ffffff"><td>
          Sorry, please ignore this.
      </td></tr>
      
      </table>
      </td></tr></table>
      
      
      
      
      
      
      
      
      
      
      
                  </table>
              </td><!-- End #email-page -->
          </tr>
          <tr valign="top">
              <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
                  This message is automatically generated by JIRA.<br />
                  If you think it was sent incorrectly, please contact your <a style='color:${textLinkColour};' href='/secure/ContactAdministrators!default.jspa'>JIRA administrators</a>.<br />
                  For more information on JIRA, see: <a style='color:${textLinkColour};' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
              </td>
          </tr>
      </table><!-- End #email-wrap -->
      </div><!-- End #email-body -->
      

      There are a few issues I found:

      1. configurable CSS colors are not being substituted in correctly
      2. $textutils.htmlEncode($jiraLogoUrl) — broken logo image (this instance uses a custom logo)
      3. Relative "JIRA administrators" URL — /secure/ContactAdministrators!default.jspa

      I was unable to determine whether this is an OnDemand-specific issue or a general JIRA problem.

      Attachments

        Activity

          People

            edalgliesh Eric Dalgliesh
            tmoore Tim Moore [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: