Last modified: 2010-05-15 15:54:47 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 T16827, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14827 - Interwiki links not using the protocol specified in interwiki.iw_url, breaking https servers
Interwiki links not using the protocol specified in interwiki.iw_url, breakin...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.12.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-15 22:00 UTC by Lester Hightower
Modified: 2010-05-15 15:54 UTC (History)
0 users

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


Attachments

Description Lester Hightower 2008-07-15 22:00:45 UTC
MediaWiki's handling of Interwiki links seems to not respect the protocol specified in the interwiki.iw_url field, and therefore improperly renders interwiki links using the protocol of the server the rendering is being run on, instead of what is specified in the interwiki.iw_url field in the database.

An example:

mysql> select * from interwiki where iw_prefix like 'wikipedia'\G
*************************** 1. row ***************************
iw_prefix: wikipedia
   iw_url: http://en.wikipedia.org/wiki/$1
 iw_local: 0
 iw_trans: 0
1 row in set (0.00 sec)

and with that in place, and running from a fictitious URL https://wiki.foo.com/wiki/Bar, the wiki markup [[[Wikipedia:Wiki]] will improperly render a link to https://en.wikipedia.org/wiki/Wiki instead of to http://en.wikipedia.org/wiki/Wiki as it should (note HTTPS vs. HTTP).
Comment 1 Lester Hightower 2008-07-23 21:11:09 UTC
After further review, we found that our problem was caused by a buggy extension that hooked into $wgHooks['GetFullURL'].  I apologize for the bad bug report.

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


Navigation
Links