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

Adding a user to a group modifies the cached document

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 17.2.0-rc-1
    • 14.10
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      • Add a user

      Expected result:

      No warning is logged.

      Actual result:

      A warning like the following is logged (in snapshot versions since 2025-02-20/XWiki 17.2.0RC1+, but the problem existed before):

      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - java.lang.IllegalStateException: Abusive modification of the cached document 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.doc.XWikiDocument.setMetaDataDirty(XWikiDocument.java:2436) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.objects.BaseElement.setOwnerDocument(BaseElement.java:468) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.objects.BaseCollection.setOwnerDocument(BaseCollection.java:988) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.objects.BaseObject.setOwnerDocument(BaseObject.java:413) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.doc.XWikiDocument.createXObject(XWikiDocument.java:2949) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.doc.XWikiDocument.newXObject(XWikiDocument.java:8806) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.XWiki.addUserToGroup(XWiki.java:4313) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.XWiki.setUserDefaultGroup(XWiki.java:4294) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.XWiki.setUserDefaultGroup(XWiki.java:4276) 
      2025-02-20 06:32:35,963 [CommonsExecStreamPumper-pool-20-thread-1] - 	at com.xpn.xwiki.internal.user.UserCreatedEventListener.onEvent(UserCreatedEventListener.java:76)
      

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: