Last modified: 2008-09-05 22:30:46 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 T2351, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 351 - Bad titles not properly filtered on page creation
Bad titles not properly filtered on page creation
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-03 03:29 UTC by Timwi
Modified: 2008-09-05 22:30 UTC (History)
3 users (show)

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


Attachments

Description Timwi 2004-09-03 03:29:30 UTC
BUG MIGRATED FROM SOURCEFORGE
http://sourceforge.net/tracker/index.php?func=detail&aid=695913&group_id=34373&atid=411192
Originally submitted by Brion Vibber (vibber)<a href="/help/icon_legend.php?context=user_wantsdonations&amp;user_id=446709&amp;return_to=%2F"><IMG src="http://images.sourceforge.net/images/icons/donate.png" alt="Accepting Donations" border="0" width="16" height="16"></a>  2003-03-02 08:58


An attempt at a [[DD Month]] -&gt; [[Month DD]]
redirect-making bot recently created a bogus entry via
a request like this:

POST
/w/wiki.phtml?title=$this_day%22,%20%22_%22,%20%22$this_month&amp;action=submit

This ran four times, and amazingly the page was created
four times! The created page had the reduced title
[[This_day,__,_this_month]].

Two problems with this:
* First, the canonicalized title didn't come out right;
multiple spaces/underscores appear at one point
(between the commas), which means subsequent attempts
to access it via that canonical title resulted in not
finding any pages. (So it shows up in rc and contribs,
but not in page view, edit, or history.)

* Second, probably as a result of the first, the page
was not found to be existing at post time, and thus
multiple access attempts resulted in multiple entries
being created with the same name!


Recommendations:
* Fix up the name canonicalization process to ensure
that the results will be, in fact, canonical. There is
another bug report or two on space problems, it should
be followed.

* Set up a UNIQUE index on (cur_namespace,cur_title) so
the database will protect against any other remaining
bugs in the wiki that might attempt to create duplicate
entries.

------------------------- Additional comments ------------------------
Date: 2003-04-14 02:30
Sender: SF user vibber

See also #720843 File upload doesn't quite validate names right
-------------------------------------------------
Date: 2003-11-19 14:10
Sender: SF user vibber

A more recently noticed problem along this vein; invalid 
characters coming before/in the namespace sometimes foul up 
namespace recognition before being discarded.
Comment 1 Aaron Schulz 2008-09-05 22:30:46 UTC
No longer seems to be an issue.

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


Navigation
Links