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

Exception while saving a document modified after a rename

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 2.7, 3.0 M2
    • Refactoring
    • Unknown
    • N/A
    • N/A

    Description

      This code raises exceptions in both XE 2.7 and XE 3.0M2:

      #set($newdoc = $xwiki.getDocument("Space.Page"))
      $newdoc.rename("NewSpace.NewPage")
      $newdoc.setTitle("NewTitle")
      $newdoc.save()

      http://pastebin.com/ztgmphuv
      http://pastebin.com/mYXP1ZFs

      Attachments

        Activity

          People

            surli Simon Urli
            flavius.olaru Flavius Olaru
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: