Page MenuHomePhabricator

IPv6 at some places lower case and at other places in upper case
Open, LowPublic

Description

When a IPv6 is making a edit, the link text on the Watchlist is in lower case, but the link to Special:Contributions has the ipv6 in upper case in it.

That is confusing. It is possible to have the ipv6 showing all the same on each place? I have no problem, when the user page of a ipv6 is under the lower case name, that looks better, than the upper cases.


See Also:
https://github.com/azatoth/twinkle/issues/145
T56219: Old short/abbreviated IPv6 addresses in Changelog should be turned into long format
T41017: IPv6 addresses should use lowercase hexadecimal digits

Details

Reference
bz44161

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:28 AM
bzimport set Reference to bz44161.
bzimport added a subscriber: Unknown Object (MLST).

Not sure if this is a dup or a dep of bug 39017, hence marking as dep only.

This is causing problems for Twinkle on enwiki (which is forced to lightly screen-scrape the loaded page in order to find out what the user is looking at).

Either IP::prettifyIP [1] should be used everywhere, or nowhere. According to [2] this function is only called from one place in the code.

IMHO it is too difficult to change over to sanitized IP addresses throughout the entire codebase, so I say we kill prettifyIP (or at least remove its sole invocation [3]).

[1] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/IP.php;h=72b9a52c8123d863bdbe44161c9760af778b496e;hb=HEAD#l195
[2] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fcore.git&a=search&h=HEAD&st=grep&s=prettifyIP
[3] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/Linker.php;h=972adfceabbe818e97d192c142440263a11b6af1;hb=HEAD#l1085

It is important to note that if MediaWiki completely converted to the proper standard, thousands of IP talk pages and many more database entries would have to be updated.

I'm fine any way for prettifyIP, but others do find collapsed addresses more convenient.

Change 92263 had a related patch set uploaded by TTO:
Stop using prettifyIP for user links

https://gerrit.wikimedia.org/r/92263

Change 92263 abandoned by TTO:
Stop using prettifyIP for user links

Reason:
I don't think this is ever going to get anywhere.

https://gerrit.wikimedia.org/r/92263