This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8c6d76f3-84c6-46be-aee5-f59d1eb37d39 XWIKI-23427 Open

Plain text email notification for mentions contains Velocity code

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3e49017d-c9a2-46c2-a029-9bc57d185ee9 Michael Hamann created this issue on 31/Jul/25 15:52
 
Summary: Plain text email notification for mentions contains Velocity code
Issue Type: cid:jira-generated-image-avatar-8c6d76f3-84c6-46be-aee5-f59d1eb37d39 Bug
Affects Versions: 17.6.0
Assignee: Unassigned
Components: Mentions
Created: 31/Jul/25 15:52
Priority: cid:jira-generated-image-static-major-a29057c1-f64c-40bb-a161-2334ca2e5392 Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

  • Configure email sending. I used https://github.com/rnwood/smtp4dev with the Docker image and configured the port and sender address in the administration.
  • Make sure your user account has an email.
  • Open the notification settings of your user account and set notifications to hourly
  • Log in as another user and add a comment that mentions the user account.
  • Go to the scheduler application as admin and trigger the hourly notification sender job.
  • Check your emails.

Expected result:

The plain text email contains a nicely readable summary of the mention event.

Actual result:

The plain text version of the email is

Event(s) on the wiki:

-------------------------------------------------------------------------------
org.xwiki.contrib:mentions-notifications:
  [mentions.mention] [Home](http://localhost:8080/xwiki/bin/view/Main/).
  edited by Username.
  2025/07/31 15:16
  Changes: http://localhost:8080/xwiki/bin/view/Main/?viewer=changes&rev1=${origdoc.version}&rev2=${newdoc.version}

The fact that it's a mention isn't clearly mentioned here, there are just some internal strings and additionally this contains Velocity code. "Username" is the actual name of the user that triggered the notification on the main page, so that part is correct.

 
 

1 update

 
cid:jira-generated-image-avatar-bf00a8d3-ff44-420c-9b2d-83841f05d63f Changes by Simon Urli on 31/Jul/25 16:00
 
Assignee: Simon Urli