Page MenuHomePhabricator

Account for m.wikipedia.org domain name file sources
Closed, ResolvedPublic

Description

Currently the File Importer will accept any URL and then decide if it can handle files at that URL or not.

on WMF production currently en.wikipedia.org would succeed and en.m.wikipedia.org will fail.

To avoid hardcoding things specific to the WMF sites in the extension we should allow some sort of configurable host normalization.

Currently there is a TODO in TargetUrl::getHost() for this.

Event Timeline

Change 378009 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/FileImporter@master] Add configurable normalization of input URLS

https://gerrit.wikimedia.org/r/378009

Change 378009 merged by jenkins-bot:
[mediawiki/extensions/FileImporter@master] Add configurable normalization of input URLS

https://gerrit.wikimedia.org/r/378009