Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-19757

Comment Email Notifications Not Sending

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 6.4.1
    • None
    • Notifications
    • None

    Description

      Summary

      Build Commented Text Email Notifications are not sending

      Steps to Reproduce

      1. Add an Email Server to Bamboo
      2. Add an Email Notification to a Plan
      3. Add a User notification to a Plan
      4. Set the User's email preferences to Text email
      5. Comment on a Build

      Expected Results

      Text email sends

      Actual Results

      The below exception is thrown in the xxxxxxx.log file:

      2018-03-13 20:36:13,389 ERROR [http-nio-8085-exec-5] [runtime] Error executing FreeMarker template
      FreeMarker template error:
      The following has evaluated to null or missing:
      ==> addedsComment  [in template "notification-templates/BuildCommentedTextEmail.ftl" at line 13, column 3]
      
      ----
      Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptiona
      lVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole
       expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
      ----
      
      ----
      FTL stack trace ("~" means nesting-related):
              - Failed at: ${addedsComment.content?html}  [in template "notification-templates/BuildCommentedTextEmail.ftl" at line 13, column 1]
      ----
      
      Java stack trace (for programmers):
      ----
      freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
              at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
      	... (truncated)

      Workaround

      Please edit the <bamboo-install>/atlassian-bamboo/WEB-INF/classes/notification-templates/BuildCommentedTextEmail.ftl file to replace:

      ${addedsComment.content?html}
      

      With

      ${addedComment.content?html}
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ezeidan Elias Zeidan (they/them)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: