Description

When renaming am page to an empty name and enabling the option to rename all subpage:

Steps to reproduce

  1. Make a WikiPage

  2. Edit it and insert the links to two sub pages on the WikiPage

     * [[/SubPage1]]
     * [[/SubPage2]]
  3. Edit the sub pages with some stub input.
  4. Go back to the WikiPage and select the RenamePage action.

  5. Rename the page to the empty string.
  6. Select "Alle /UnterSeiten auch umbenennen?" (something like rename all /SubPages).

  7. Click the "Seite umbenennen" Button.
  8. A notice is displayed:
    • {X} "Sie können eine Seite nicht auf einen leeren Seitennamen umbenennen. None None"

    • Diese Seite wirklich umbenennen?"
  9. Nevertheless the sub pages already gut renamed to /SubPage1 and /SubPage2.

  10. When reviewing the RecentChanges one will see that the subpages got renamed from WikiPage/SubPage1 to /SubPage1 .

  11. 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

Component selection

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

Discussion

Renaming a page to an empty name makes no sense, thus this case should be catched and rejected by the code.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/RenamePageDestroysSubPageNaming (last edited 2009-11-29 16:40:35 by ThomasWaldmann)