Description

Describe the bug...

Steps to reproduce

  1. Create a page
  2. Rename it to something with a colon in the title
  3. Go to the new page
  4. Try to rename it again, to remove the colon

Example

I'm not able to rename pages without logging in so I can't reproduce it here right now.

I managed to do this on my company's internal wiki. I was renaming a page, and pasted the URL of the new parent page rather than just the path portion. The page is now located at https:/wiki.example.com/Correct/Path (note only one slash) and can be viewed, but not renamed or deleted. This is because the HTML form for doing so has an action of https:/wiki.example.com/Correct/Path, which my web browser (Chrome) interprets as a relative path under the current Wiki domain, resulting in the form submission being sent to https://wiki.example.com/https%3A/wiki.example.com/Correct/Path which does not exist.

Component selection

Details

MoinMoin Version

1.9.3

OS and Version

Debian 6.0.1

Python Version

2.6

Server Setup

Apache/2.2 mod_fcgid/2.3.6

Workaround

I've tried to manually perform the HTTP request to rename the page, but only get a 403 error:

$ POST 'https://wiki.example.com/https%3A/wiki.example.com/Correct/Path' <<< 'newpagename=Correct/Path&comment=butterfingers&ticket=xxxxx&action=RenamePage&name=Rename+Page'

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/RenamePageFailsWithColonInTitle (last edited 2011-05-10 20:33:54 by ReimarBauer)