Page MenuHomePhabricator

Invalid URL on SiteMatrix for wikis with protocol-relative $wgServer
Closed, ResolvedPublic

Description

On http://meta.wikimedia.org/w/api.php?action=sitematrix (same on every other wiki) contains an invalid url syntax at two entries:

<special url="office.wikimedia.org" code="office" private="" />
<special url="
test.wikipedia.org" code="test" />

The scheme (http) and the colon is missing, the scheme-specific-part is ok.


Version: unspecified
Severity: major
URL: http://meta.wikimedia.org/w/api.php?action=sitematrix

Details

Reference
bz30171

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:48 PM
bzimport added a project: SiteMatrix.
bzimport set Reference to bz30171.
bzimport added a subscriber: Unknown Object (MLST).

This is intended. We're currently testing dropping the schema for introduction of an https site.

No, this is not correct. Per Roan's e-mails on the subject: info output from the API should be fully-qualified.

The new expandUrl functionality should take care of this (or otherwise it will allow an easy fix for it)

Moving to CentralAuth extension component, likely not something in the wmf-config.

cc'ing roan on since this appears to be because of the https project.

Bryan.TongMinh wrote:

CA -> SiteMatrix

The problem why i reported this bug is, that this causes parse errors if a bot framework expectes a valid url. According to RFC 1738 a scheme is always needed.

The only solution would be to return the same protocol as used for the http(s) request.

  • Bug 29965 has been marked as a duplicate of this bug. ***

Renamed bug to not be WMF-specific.

Will hopefully be fixed with r94369, which I will deploy on Monday.

(In reply to comment #10)

Will hopefully be fixed with r94369, which I will deploy on Monday.

Yup, that did it. Closing as FIXED.