https://bugzilla.wikimedia.org/show_bug.cgi?id=28276

--- Comment #8 from Krinkle <[email protected]> 2011-07-09 00:00:37 UTC ---
So to summarize, in prep. of a wikitech-l post:

IRC channels are historically in a domain-name fashion (but without a .org
prefix), eg.:
* #commons.wikimedia
* #en.wikipedia
* #nl.wiktionary
* etc.

However the way wgRC2UDPPrefix does this is by reverse engeneering the logic
based on wgDBname, $site and $lang, and does so fairly well but there are (imho
too many) exceptions. None of them are surprising once you know how wgDBname is
constructed (regexes, switches and stuff in the head of noc settings).

So since this is a long after initialization, how about just using wgServer for
this ? Note that this may be problematic with edits made on the secure server,
depending on how stuff is send and handled.

Now that I think of it, the 'wikipedia' word problem is also bugging other
systems. Such as the several lazy implementations for urls that do
http://$lang.$site (that cause bug 27911) which causes Server Not Found errors
with icon embeds to stuff like
http://foundation.wikipedia.org/apple-touch-icon.png (that hostname doesn't
exist! yet there's a link to it in the head-section of all pages on those
dbname "*wiki" wikis.

.. perhaps a better solution to fix this is to use wgServer instead of
$lang.$site. Although it can't be used on the server server (yet), so perhaps a
var like $wmfDomain can be constructed that is the real hostname (so it won't
say mediawiki.wikipedia but mediaiki.org for instance) and use that instead.

It's funny how something simple like the domainname of the current wiki is not
available... With https into relative urls and secure.wm.o gone, that part of
the problem should become a moot point though.

Anyway back to the present and to this bug (which we may wanna wait fixing
until after secure.wm.o is gone) - what're your thoughts on this ? using
wgServer (or wmfDomain) bad ?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to