Description
When renaming am page to an empty name and enabling the option to rename all subpage:
- an error is displayed that the main page can not be renamed ("Sie können eine Seite nicht auf einen leeren Seitennamen umbenennen. None None" in german).
- the subpages get renamed nevertheless, so these get names like /subpage
- the Wiki is now totally messed up, as the subpages can not be accessed via the web
Steps to reproduce
Make a WikiPage
Edit it and insert the links to two sub pages on the WikiPage
* [[/SubPage1]] * [[/SubPage2]]
- Edit the sub pages with some stub input.
Go back to the WikiPage and select the RenamePage action.
- Rename the page to the empty string.
Select "Alle /UnterSeiten auch umbenennen?" (something like rename all /SubPages).
- Click the "Seite umbenennen" Button.
- A notice is displayed:
"Sie können eine Seite nicht auf einen leeren Seitennamen umbenennen. None None"
- Diese Seite wirklich umbenennen?"
Nevertheless the sub pages already gut renamed to /SubPage1 and /SubPage2.
When reviewing the RecentChanges one will see that the subpages got renamed from WikiPage/SubPage1 to /SubPage1 .
It is not possible to get access to the pages named in this way, as the leading / gets removed somewhere between the browser and MoinMoin .
Example
- An example can easily be created in any wiki instance.
Component selection
- lib/python2.6/site-packages/MoinMoin/RenamePage.py
- do_action
Details
MoinMoin Version |
1.8.5 |
OS and Version |
Solaris 10 |
Python Version |
2.6.1 |
Server Setup |
Apache 2.2.11, mpm prefork, mod_wsgi 3.1 |
Server Details |
Sun Webstack 1.5 |
Language you are using the wiki in (set in the browser/UserPreferences) |
german |
Workaround
- Don't rename pages to the empty string.
Discussion
Renaming a page to an empty name makes no sense, thus this case should be catched and rejected by the code.
Plan
- Priority:
- Assigned to:
Status: fixed by http://hg.moinmo.in/moin/1.9/rev/501b170e3238