Allow importing files from any location on http://mwfileimport.wmflabs.org
Closed, ResolvedPublic

Description

Before the new demotime / PM time we should enable importing files from ANY wiki, not just wikis that are in the sites table on the test instance.

This will allow easy demoing of T162255 as we can upload / poke test images on beta or test wikis to use.

It should be something as simple as the below...

$wgFileImporterSourceSiteServices = [ 'FileImporterAnyMediaWikiSite' ];
Addshore created this task.Aug 22 2017, 2:29 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 22 2017, 2:29 PM
Addshore moved this task from Backlog to Next on the User-Addshore board.Aug 22 2017, 2:29 PM
Restricted Application added a project: TCB-Team. · View Herald TranscriptAug 22 2017, 3:28 PM
Addshore moved this task from Next to In Progress on the User-Addshore board.
Addshore closed this task as Resolved.Aug 23 2017, 8:35 AM

So I have changed the setting but now whn trying to use files from beta commons I get the following issue:

[FileImporter] PhpHttpRequest: error opening connection: fopen(): Peer certificate CN=`aa.m.wikipedia.beta.wmflabs.org' did not match expected CN=`commons.wikimedia.beta.wmflabs.org'
[FileImporter] Failed to discover API location from: "https://commons.wikimedia.beta.wmflabs.org/wiki/File:Ike's_the.jpg". Status code 200,

Using things from testwikipedia however work just fine! for example https://test.wikipedia.org/wiki/File:InvertedWiki.png

Addshore moved this task from In Progress to Done on the User-Addshore board.