Page MenuHomePhabricator

Relative URIs in interwiki links table break interwiki transclusion
Closed, ResolvedPublic

Description

Call wfExpandUrl in request() [HttpFunctions.php]

If you have an interwiki link:
ru => '//ru.wikifur.com/wiki/$1'
where iw_trans is set to 1

then the following inclusion:
{{:ru:GreenReaper}}
will fail with the following error:
"[Template fetch failed for en.wikifur.com/wiki/GreenReaper?action=render]"
and:
"Warning: file_get_contents(
en.wikifur.com/wiki/GreenReaper?action=render) [function.file-get-contents]: failed to open stream: No such file or directory in [*censored*]/pool/w/includes/HttpFunctions.php on line 116"

If wfExpandUrl is called to expand the $url passed to request(), this ensures (once bug 18664 is fixed) that the relative URL becomes an absolute URI as required by file_get_contents.


Version: unspecified
Severity: minor

Attached:

Details

Reference
bz19270

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedNone
OpenNone
ResolvedNone
DeclinedNone
DeclinedNone
ResolvedNone
ResolvedCatrope
DeclinedNone
ResolvedNone
ResolvedCatrope
ResolvedNone
ResolvedCatrope
ResolvedNone
ResolvedCatrope
ResolvedNone
ResolvedCatrope
ResolvedNone
ResolvedNone
DeclinedNone
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedNone
InvalidNone
ResolvedCatrope
ResolvedNone
ResolvedCatrope
Resolvedbrion
ResolvedNone
ResolvedNone
ResolvedKrinkle
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedCatrope
ResolvedNone
OpenNone
OpenNone
InvalidNone
DeclinedNone
ResolvedJackmcbarn

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:41 PM
bzimport set Reference to bz19270.
bzimport added a subscriber: Unknown Object (MLST).