Last modified: 2014-11-13 16:22:38 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 T21637, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19637 - externallinks have links to self (not that external)
externallinks have links to self (not that external)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.16.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-10 13:08 UTC by Domas Mituzas
Modified: 2014-11-13 16:22 UTC (History)
4 users (show)

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


Attachments

Description Domas Mituzas 2009-07-10 13:08:02 UTC
externallinks tables have lots of self-referencing links, mostly caused by templates, and interface language variants. 

there should be no project self-referencing links inside 'externallinks', as they grow up to 50GB-per-db-per-instance of crap that will never be used.
Comment 1 Mike.lifeguard 2009-07-10 23:44:12 UTC
This relies on having an internal link syntax for diffs and oldids (etc?) Dunno where the bug is for that, but there is one.
Comment 2 Splarka 2009-07-10 23:47:27 UTC
(In reply to comment #1)
> This relies on having an internal link syntax for diffs and oldids (etc?) Dunno
> where the bug is for that, but there is one.
> 

I believe he just wants to ditch any links, where the prefix matches wgServer, from being registered as 'exernallinks' (and not actually change the links).

But, on Commons, for example, how would it handle links to the secure server?
Comment 3 Mike.lifeguard 2009-07-10 23:52:56 UTC
(In reply to comment #2)
> I believe he just wants to ditch any links, where the prefix matches wgServer,
> from being registered as 'exernallinks' (and not actually change the links).

My misunderstanding then.

Do we actually use the fact that these are registered as external links for anything? I know the internal link table is (ab)used on meta to track some spam stuff... anything similar for these external links?
Comment 4 Emufarmers 2009-07-11 03:31:49 UTC
(In reply to comment #2)
> But, on Commons, for example, how would it handle links to the secure server?
There could be a global variable of hostnames to ignore (defaulting to $wgServer).

(In reply to comment #3)
> Do we actually use the fact that these are registered as external links for
> anything? I know the internal link table is (ab)used on meta to track some spam
> stuff... anything similar for these external links?

I believe externallinks is used for ConfirmEdit, Special:LinkSearch, and prop=extlinks in the API (among other things?).  WMF projects are already whitelisted for ConfirmEdit, but it seems like people do use Special:LinkSearch to check for "local" external links.  If people are attached to that functionality, maybe we could remove links from the table only if they also include &action=?
Comment 5 Domas Mituzas 2009-07-11 08:05:46 UTC
Fixed in r53104, links starting with $wgServer are no longer saved, unless overridden. 
Comment 6 Domas Mituzas 2009-07-11 09:28:10 UTC
Live merge note: this fix is live as of 2009 July 11th

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


Navigation
Links