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

Velocity allowlist does not include batched email notification templates

      Issue Summary

      Modifications to the batched email notification templates in Jira 10 will not be reflected because the batched email templates are not in the velocity allowlist

      Steps to Reproduce

      1. Install Jira 10.3.2
      2. Customize batched email notification templates

      Expected Results

      Modifications are reflected in batched email notifications

      Actual Results

      Modifications are not reflected and the following error is thrown in atlassian-jira.log:

      Caesium-1-4 ERROR ServiceRunner     [c.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'templates/email-batch/html/template.vm'
      org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'templates/email-batch/html/template.vm'
      

      Workaround

      Add the batched email notification templates to the velocity allowlist located at (JIRA-INSTALL-DIR)/atlassian-jira/WEB-INF/classes/velocity-default.properties:

      # starts at line number 1001
      templates/email-batch/html/template.vm, \
      templates/email-batch/html/footer.vm, \
      templates/email-batch/html/hr-bottom.vm, \
      templates/email-batch/html/IssueUpdateBatcher-content.vm, \
      templates/email-batch/html/IssueUpdateBatcher-header.vm, \
      templates/email-batch/html/IssueUpdateBatcher-history.vm, \
      templates/email-batch/html/IssueUpdateBatcher-subject.vm, \
      templates/email-batch/html/IssueUpdateBatcher.vm, \
      templates/email-batch/html/spacer.vm, \
      templates/email-batch/html/template.vm, \
      templates/email-batch/shared/mention-text.vm, \
      templates/email-batch/text/IssueUpdateBatcher-subject.vm, \
      templates/email-batch/text/IssueUpdateBatcher.vm
      

          Form Name

            [JRASERVER-78661] Velocity allowlist does not include batched email notification templates

            SET Analytics Bot made changes -
            Support reference count Original: 13 New: 14
            SET Analytics Bot made changes -
            UIS Original: 36 New: 38
            SET Analytics Bot made changes -
            Support reference count Original: 12 New: 13
            SET Analytics Bot made changes -
            UIS Original: 30 New: 36
            SET Analytics Bot made changes -
            UIS Original: 28 New: 30
            SET Analytics Bot made changes -
            Support reference count Original: 10 New: 12
            SET Analytics Bot made changes -
            UIS Original: 20 New: 28
            SET Analytics Bot made changes -
            Support reference count Original: 9 New: 10
            SET Analytics Bot made changes -
            Support reference count Original: 8 New: 9
            SET Analytics Bot made changes -
            UIS Original: 5 New: 20

              Unassigned Unassigned
              jcurry Jeff Curry
              Affected customers:
              8 This affects my team
              Watchers:
              18 Start watching this issue

                Created:
                Updated: