Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
-
Severity 2 - Major
-
Description
Summary
Build Commented Text Email Notifications are not sending
Steps to Reproduce
- Add an Email Server to Bamboo
- Add an Email Notification to a Plan
- Add a User notification to a Plan
- Set the User's email preferences to Text email
- 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
- is caused by
-
BAM-18583 Bamboo Export fails when the user_comments content is null
- Closed