There are 5 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-97e34ed5-6a21-468a-8b6c-baa629514a25 XWIKI-22932 Closed

The Notifications email scheduler job is modifying the cached documents

 
View issue   ยท   Add comment
 

5 updates

 
cid:jira-generated-image-avatar-7bded749-b10a-466b-b982-d998c06bf2ab Changes by Manuel Leduc on 25/Feb/25 17:49
 
Description: h2. Reproduction steps
# start a xwiki instance
#
wait long enough for Visit [http://localhost:8080/xwiki/bin/view/Scheduler/]
# click on
the error to be displayed in Trigger link of the logs (I guess triggering "Notifications hourly email" line
# observe
the notifications should do the job) console

h2.
Result Expected

No error logs
h2. Actual

The following logs are displayed
{noformat}
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) {noformat}
 
cid:jira-generated-image-avatar-735ab270-3a55-44fb-969d-e737c49c792e Changes by Thomas Mortagne on 25/Feb/25 17:56
 
Fix Version: 16.10.5
Fix Version: 17.2.0-rc-1
Resolution: Fixed
Status: In Progress Closed