Last modified: 2010-07-04 17:19:37 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 T21003, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19003 - Searching for <number>:<number> leads to Special:Contributions
Searching for <number>:<number> leads to Special:Contributions
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://sv.wikipedia.org/wiki/Special:...
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-29 20:25 UTC by Lejonel
Modified: 2010-07-04 17:19 UTC (History)
2 users (show)

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


Attachments

Description Lejonel 2009-05-29 20:25:36 UTC
Searching for two numbers with less than 5 digits separated by a colon (like 1234:1234) takes you to contribution list for that username (Special:Contributions/1234:1234). This occurs when using either search field and go button (but not search button), or when using links or urls like [[Special:Search/123:123]].

If one or both numbers have at least 5 digits, searching appears to work correctly.
Comment 1 Splarka 2009-05-30 08:02:43 UTC
This is the fault of some lazy IPv6 regex. A valid IP address in Special:Search is supposed to take you to the Special:Contributions of that IP. See http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/IP.php and:

http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/SearchEngine.php
		# Entering an IP address goes to the contributions page
		if ( ( $title->getNamespace() == NS_USER && User::isIP($title->getText() ) )
			|| User::isIP( trim( $searchterm ) ) ) {
			return SpecialPage::getTitleFor( 'Contributions', $title->getDBkey() );
		}


Comment 2 Brion Vibber 2009-06-22 23:26:29 UTC
Ok judging by http://en.wikipedia.org/wiki/IPv6 it looks like 1234:1234 is *not* a valid IPv6 address... but 1234::1234 is. :)

I can confirm this experimentally:

$ ping6 1234:1234
ping6: nodename nor servname provided, or not known

$ ping6 1234::1234
ping6: UDP connect: No route to host


A fixup to the regex checks should be able to clear this up.
Comment 3 Aaron Schulz 2009-07-27 06:08:51 UTC
Fixed in r53795

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


Navigation
Links