Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22932

The Notifications email scheduler job is modifying the cached documents

    XMLWordPrintable

Details

    • Unknown

    Description

      Reproduction steps

      1. start a xwiki instance
      2. Visit http://localhost:8080/xwiki/bin/view/Scheduler/
      3. click on the Trigger link of the "Notifications hourly email" line
      4. observe the console

      Expected

      No error logs

      Actual

      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) 

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: