Last modified: 2010-05-15 16:03:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23218, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21218 - Using the move page UI you can create a page name containing +, not %2B
Using the move page UI you can create a page name containing +, not %2B
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.13.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-21 07:59 UTC by Tim Hunt
Modified: 2010-05-15 16:03 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tim Hunt 2009-10-21 07:59:42 UTC
and after you have done that, you have a mess on your hands.

==First for reference==

1. Edit any page on your wiki.
2. Type [[Test + page]] to create a link to a non-existent page.
3. Click that link, and note that the URL contains Test_%2B_bug

==Steps to reproduce==

1. Log in as someone with permission to move pages.
2. Go to any page on the wiki.
3. Click the move tab.
4. Type 'Test + page' in the to new title box.

===Expected outcome===

Either the page is moved to the new title Test_%2B_bug, or an error message telling you not to do that

===Actual outcome===

The page gets moved to a URL containing a literal +, which is a bad thing. For example, any links pointing to the new page do not work. You cannot edit the new page.

The only way out I could find was to revert the move from the Move log.


By the way, I encountered this on http://docs.moodle.org/en/.
+ is a very bad thing to have to search for in a bug summary, so I may well have failed to find any existing bug report about this, in which case please accept my apologies.
Comment 1 Alexandre Emsenhuber [IAlex] 2009-10-22 09:44:10 UTC
I'm not able to reproduce this, on both 1.13 and 1.16, the "+" is correctly escaped after moving the page, links work correctly and the page is editable.
Comment 2 Tim Hunt 2009-10-22 09:51:04 UTC
Thank you for looking into this for me.

I was able to reproduce it Short version:

1. Go to http://docs.moodle.org/en/index.php?title=User:Tim_Hunt/test&redirect=no
2. Click on the 'User:Tim Hunt/test + move' link.
3. Note that you get in a 'create new page' form, not the page I just moved.


What I did to set that up:

1. Go to http://docs.moodle.org/en/User:Tim_Hunt
2. Edit the page to add the link to the non-existent page 'User:Tim Hunt/test'
3. Click on that link to create the new page.
4. Type 'Some test content.' into that page, and save.
5. Click the move tab.
6. Type in the new page name 'User:Tim Hunt/test + move' and save


Comment 3 Alexandre Emsenhuber [IAlex] 2009-10-22 11:15:19 UTC
The problem seems to be with your rewrite rules. The links in the source (http://docs.moodle.org/en/User:Tim_Hunt/test_%2B_move) is correct and using the ugly URL (http://docs.moodle.org/en/index.php?title=User:Tim_Hunt/test_%2B_move) works correctly.
Comment 4 Tim Hunt 2009-10-22 11:25:51 UTC
Ah right. I guess we can resolve this as INVALID then.

(FYI, I created http://tracker.moodle.org/browse/MDLSITE-816 to track this at our end.)

Sorry I wasted your time with our configuration problem, and thank you for your help.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links