Since upgrading to Jira Data Center version 10, the mail server names and hostnames are no longer displayed under:
Administration → System → Incoming Mail
Instead of the actual values, the UI renders the following placeholders:
$esc.html($server.name)
$esc.html($server.hostname)
This issue did not occur before the upgrade and appears to be related to how the UI processes and renders the mail server configuration.
Important note: We have not made any changes to the Velocity templates or any other frontend-related files.
To troubleshoot the issue, we performed the following actions:
Cleared plugin and temp caches:
<jira-home>/plugins/.bundled-plugins
<jira-home>/plugins/.osgi-plugins
<jira-install>/tmp
Activated Safe Mode to rule out plugin conflicts.
Performed a full re-index of the instance.
After these steps, the issue was temporarily resolved for approximately one day.
The problem reappeared today during configuration changes to the mail server. The placeholders are now shown again instead of the actual mail server names and hostnames.
This issue prevents us from properly verifying and managing mail server configurations via the UI. Since we rely on email for issue creation and commenting, this is a critical functionality for our operations.
We would appreciate your assistance with the following:
Additional info:
Please advise on how to resolve this issue or if a patch is available
A screenshot is attached for reference.
This issue looks related to Velocity template rendering in Jira Data Center 10.7.1.
The placeholders like $esc.html($server.name) usually appear when Jira fails to render field values due to escaping or backend data issues.
Steps to identify the root cause:
1. Run the SQL to check if the mail server names or hostnames contain special characters:
SELECT name, hostname FROM mailserver;
→ Remove or clean any values with <, >, &, $ etc.
2. Enable debug logging for Velocity to trace rendering issues:
log4j.logger.com.atlassian.velocity=DEBUG
3. Check if any Velocity escaping settings were modified in velocity.properties (if applicable).
Check if `velocity.properties` has escape settings like `directive.set.escapehtml = true`; incorrect or custom values may cause rendering issues.
---------------------------------------------------------------------------------------------
If the data looks clean and no customization was done, this could be a rendering bug introduced in 10.7.1. Recommend raising a support ticket with logs and a screenshot.
Hope this helps in narrowing down the actual cause!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.