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

Abusive modification of the cached document when resetting a page to the version of its extension

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 18.10.0
    • Extension - XAR
    • None
    • Unknown

    Description

      STEPS TO REPRODUCE:

      1. Make sure logging.deprecated.enabled isn't set to false in xwiki.properties (the default).
      2. Install an extension that contains a page P and modify P.
      3. Reset P to the version of the extension, from the diff of the customized pages of the extension in the Extension Manager (or with $services.extension.xar.reset).
      4. Look at the logs.

      EXPECTED RESULTS:
      No warning.

      ACTUAL RESULTS:
      A warning "Abusive modification of the cached document" about P, with a stack trace going through Packager#resetWithContextUser. If saving P fails, the cached P keeps the content of the extension.

      The warning is visible in the CI logs of ExtensionIT (NestedExtensionIT#testResetDocument).

      Found while working on XWIKI-22643.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: