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

Cannot delete and recreate the same document in the same request

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 4.0-milestone-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: