Description

When trying to revert a page deletion, I get an EmptyPage error.

Steps to reproduce

  1. Create a page. Save it three times
  2. Go to the page's info subpage. There should now be three revisions for the page.
  3. Delete the page
  4. Go to the page's info subpage. There should now be a fourth revision representing the deletion
  5. Click on the fourth revision's 'to previous' link.
  6. Click 'revert to this revision' and fill out the revert form.
  7. EmptyPage exception is thrown

Example

Try reverting from this link: http://moinmo.in/SamMorris/DeletionTest?action=revert&rev=4

Component selection

Details

traceback.html

This Wiki

Workaround

View the second-last revision, and copy the raw page data into the clipboard. Then edit the page, paste and save.

Just revert to the second-last revision and not to the recent one.

Discussion

You have always to call revert on version (e.g. http://moinmo.in/SamMorris/DeletionTest?action=revert&rev=3) you want to have as new (reverted) version.

Of course offering revert on a deleted page/ current page is not wanted or to be able to revert to a deleted last revision. That's the real bug.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/CannotRevertPage (last edited 2009-09-05 18:12:44 by ThomasWaldmann)