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

Some notifications will fail on Jira Data Center 8.14.0 instances hosted on Windows

      Issue Summary

      Jira Data Center 8.14.0 introduces this new functionality, so that e-mail templates are stored at Jira's Shared Home folder.

      On environments using Windows, the path to the Shared home will be specified like \\path\to\shared_home and Jira tries to complete the path to the e-mail templates using '/' instead, so it is unable to find the files there.

      Steps to Reproduce

      1. Install Jira Data Center 8.14.0
      2. Create an e-mail subscription for a filter
      3. Wait until it's triggered

      Expected Results

      Jira will successfully send the subscription notification

      Actual Results

      Jira will send the notification with a "Could not locate resource" text.

      At the application logs, Jira will throw a warning stating that the required template was not found:

      com.atlassian.cache.CacheException: java.lang.RuntimeException: Couldn't load template! templateFile: templates/email/subject/filtersubscription.vm
      

      Workaround

      Disable new functionality:

      1. Edit the file <JIRA_INSTALLATION_FOLDER>/atlassian-jira/WEB-INF/classes/jira-features.properties
      2. Look for the setting called com.atlassian.jira.email.templates.readFromJiraHome and set it to false, as shown below:
        com.atlassian.jira.email.templates.readFromJiraHome=false
        
      3. Save the change made to this file
      4. Restart Jira
      5. Jira will use bundled templates instead of custom ones from <Shared_Home>

            [JRASERVER-71988] Some notifications will fail on Jira Data Center 8.14.0 instances hosted on Windows

            As christian.patterer1842563946 already mentioned, it's possible to disable custom email templates feature and restart Jira and then Jira will fallback to using bundled templates. Apologies for the issue, we're on it

            Mac Przepiora (Inactive) added a comment - As christian.patterer1842563946  already mentioned, it's possible to disable custom email templates feature and restart Jira and then Jira will fallback to using bundled templates. Apologies for the issue, we're on it

            There is a feature toggle in jira-features.properties called com.atlassian.jira.email.templates.readFromJiraHome. When changing this from true to false and restarting Jira, mails do at least work with the standard templates. Seems to work for me right now as this is really a showstopper.

            Christian Patterer added a comment - There is a feature toggle in jira-features.properties called com.atlassian.jira.email.templates.readFromJiraHome. When changing this from true to false and restarting Jira, mails do at least work with the standard templates. Seems to work for me right now as this is really a showstopper.

              mprzepiora@atlassian.com Mac Przepiora (Inactive)
              rrosa@atlassian.com Rodrigo Rosa
              Affected customers:
              3 This affects my team
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: