Page MenuHomePhabricator

Utils::insertDefaultSites sometimes fails when using https
Closed, ResolvedPublic

Description

Reportedly, Idf0a6547 causes insertDefaultSites to fail with an error:

"Warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/wikidata-repo/extensions/Wikibase/lib/includes/Utils.php on line 88"

I was not able to reproduce this, but to allow for easier investigation of the issue, I have submitted changes that report more meaningful errors on failure: Iab7e750e for Wikibase and Iad3995a6 for core. If you experience the problem described above, please patch these in and report your findings.


Version: unspecified
Severity: normal

Details

Reference
bz40701

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:55 AM
bzimport set Reference to bz40701.
bzimport added a subscriber: Unknown Object (MLST).

The problem seems to be cause by CRUL not trusting any SSL CA by default on some systems:

http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/

We may need a configuration setting to allow people to disable the "HTTPS per default" behavior.