Last modified: 2005-01-30 04:46:55 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 T2327, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 327 - Long titles not truncated in Title object for checks
Long titles not truncated in Title object for checks
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-03 03:22 UTC by Timwi
Modified: 2005-01-30 04:46 UTC (History)
1 user (show)

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


Attachments

Description Timwi 2004-09-03 03:22:12 UTC
BUG MIGRATED FROM SOURCEFORGE
http://sourceforge.net/tracker/index.php?func=detail&aid=879509&group_id=34373&atid=411192
Originally submitted by Nobody/Anonymous - nobody  2004-01-19 00:09


Article titles get truncated to 255 characters.

On the test wikipedia, I created [[TestA]] 
(contents: "This is '''TestA'''. I will create [[TestB]].") 
and [[TestB]] (contents: "This is '''TestB'''. I created 
[[TestA]]."), then moved both [[TestA]] and then 
[[TestB]] to [[123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456]]. The final 6 was 
truncated from the resulting article title, leaving a 
broken redirect to the full title from [[TestA]] and 
[[TestB]]. The article at [[123...345]] is the previous 
[[TestA]]. The previous [[TestB]] appears to be gone.

I prefer not to perform the experiment on a real 
wikipedia, and I don't have sysop access on the test 
wikipedia, so I haven't been able to try 
deleting/restoring it, to see if the contents or history of 
[[TestB]] survived somehow.

[[User:Cyp| ''Cyp'']] 23:07, 18 Jan 2004 (UTC)

------------------------- Additional comments ------------------------
Date: 2004-03-15 16:49
Sender: SF user hashar

Related to bug 855544 (long page name)  
https://sourceforge.net/tracker/?
func=detail&atid=411192&aid=855544&group_id=34373

Software should not allow a title to be changed to a title that 
don't fit in the database. Code is already patched when 
creating a new page, need to be implemented when moving 
page now :0)
Comment 1 Timwi 2004-09-03 21:51:50 UTC
Sounds like a security problem; raising priority.
Comment 3 Brion Vibber 2005-01-30 04:46:55 UTC
In REL1_4 and current HEAD there is a hard-coded check in Title::secureAndSplit(), which does the validity checks. Too-long 
titles are rejected explicitly now, rather than truncated silently.

Resolving as FIXED.

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


Navigation
Links