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

Cannot delete and recreate the same document in the same request

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0-milestone-1
    • 3.5
    • Old Core
    • None
    • Unknown

    Description

      The following script will always fail with a "failed batch update" error:

      #set ($d = $xwiki.getDocument('Main.nothere'))
      $d.setContent('v1')
      $d.save('v1')
      $d.setContent('v2')
      $d.save('v2')
      $d.delete()
      #set ($d = $xwiki.getDocument('Main.nothere'))
      $d.setContent('v1b')
      $d.save('v1b')
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: