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

Method removeVersion() of package com.xpn.xwiki.doc.XWikiDocumentArchive doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Major
    • None
    • 9.10.1
    • Scripting
    • None
    • docker PostgreSQL
    • Unknown

    Description

      On a Groovy Script I call the method removeVersion of com.xpn.xwiki.doc.XWikiDocumentArchive.
      This method doesn't seem to delete the version.
      There is no message in the log related to this call.

      The attached script purpose was to delete versions of each document related to global users. The versions deleted have to be created by users XWiki.admin or XWiki.build.

      You could adapt this script for testing it so that you can see that something is going wrong without any notification.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            Camille_D Camille Desmots
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: