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

Update Velocity Engine to 2.0+

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • 0
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      If user macros are defined in a velocity template, they can potentially be included without rendering due to a Velocity bug https://issues.apache.org/jira/browse/VELOCITY-776

      Ideally JIRA will update its internal version of Velocity1.7/VelocityTools>= 2.0 which contains the fix, released 17 JUL 2016. Currently JIRA 7.3 is shipping with V1.6.4

      The workaround is put UserMacro definitions inside ./atlassian-jira/WEB-INF/classes/templates/email/macros.vm so they are defined statically.

      The 2.0. release has been available since JUL 2017

      http://central.maven.org/maven2/org/apache/velocity/velocity-engine-core/2.0/

      https://dist.apache.org/repos/dist/dev/velocity/velocity-engine/2.0/release-notes.html

              Unassigned Unassigned
              cd3cc7134331 Andy Brook
              Votes:
              14 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: