Description
When trying to revert a page deletion, I get an EmptyPage error.
Steps to reproduce
- Create a page. Save it three times
- Go to the page's info subpage. There should now be three revisions for the page.
- Delete the page
- Go to the page's info subpage. There should now be a fourth revision representing the deletion
- Click on the fourth revision's 'to previous' link.
- Click 'revert to this revision' and fill out the revert form.
EmptyPage exception is thrown
Example
Try reverting from this link: http://moinmo.in/SamMorris/DeletionTest?action=revert&rev=4
Component selection
- general
Details
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.
Hm, yes, I just realised that I wanted to revert to revision 3 in my example after I pasted the bug. But I tried to do so from the UI, and the button is disabled: http://moinmo.in/4ct10n/diff/SamMorris/DeletionTest?action=diff&rev1=2&rev2=3 But as you say I can manually edit the URL, so that will do as a workaround. -- SamMorris 2009-08-03 20:20:10
You could also do first look at the old version and then revert by the more action menu "revert to this revision" -- ReimarBauer 2009-08-03 21:31:23
Plan
- Priority:
- Assigned to:
Status: fixed by http://hg.moinmo.in/moin/1.8/rev/c8be59640927