This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-7b4ce3f1-7870-4db4-8af7-7458b26d823c XWIKI-22932 Open

The Notifications email scheduler job is modifying the cached documents

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-eb9d40c8-f0a0-4b27-853a-3d12277923a0 Manuel Leduc created this issue on 25/Feb/25 17:14
 
Summary: The Notifications plugin is modifying the cached documents
Issue Type: cid:jira-generated-image-avatar-7b4ce3f1-7870-4db4-8af7-7458b26d823c Bug
Affects Versions: 16.10.4
Assignee: Unassigned
Components: Notifications
Created: 25/Feb/25 17:14
Priority: cid:jira-generated-image-static-major-30b5e57e-9f49-4254-a2ae-ee72e50fb215 Major
Reporter: Manuel Leduc
Description:

Reproduction steps

  1. start a xwiki instance
  2. wait long enough for the error to be displayed in the logs (I guess triggering the notifications should do the job)

Result

The following logs are displayed

2025-02-25 17:00:01,008 [DefaultQuartzScheduler_Worker-8] WARN  c.x.x.d.XWikiDocument          - Abusive modification of the cached document [xwiki:XWiki.Notifications.NotificationEmailHourlySender()] 
java.lang.IllegalStateException: Abusive modification of the cached document
    at com.xpn.xwiki.doc.XWikiDocument.setMetaDataDirty(XWikiDocument.java:2436)
    at com.xpn.xwiki.objects.BaseElement.setDirty(BaseElement.java:133)
    at com.xpn.xwiki.objects.BaseProperty.setDirty(BaseProperty.java:386)
    at com.xpn.xwiki.objects.BaseProperty.setValueDirty(BaseProperty.java:380)
    at com.xpn.xwiki.objects.BaseProperty.setValueDirty(BaseProperty.java:368)
    at com.xpn.xwiki.objects.DateProperty.setValue(DateProperty.java:56)
    at com.xpn.xwiki.objects.BaseObject.set(BaseObject.java:364)
    at org.xwiki.notifications.notifiers.internal.DefaultModelBridge.savePropertyInHiddenDocument(DefaultModelBridge.java:66)
    at org.xwiki.notifications.notifiers.internal.email.NotificationEmailJob.setPreviousFireTime(NotificationEmailJob.java:123)
    at org.xwiki.notifications.notifiers.internal.email.NotificationEmailJob.executeJob(NotificationEmailJob.java:72)
    at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:76)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:570) 
 
 

1 update

 
cid:jira-generated-image-avatar-f2e60600-7f17-459a-8b90-d75759aea46b Changes by Thomas Mortagne on 25/Feb/25 17:15
 
Summary: The Notifications plugin email scheduler job is modifying the cached documents