Page MenuHomePhabricator

LocalisationUpdate's GET request of HttpFetcher::fetchFile() should follow redirects
Closed, ResolvedPublic

Description

HttpFetcher::fetchFile() tries to fetch from, say, https://raw.github.com/Wikimedia/mediawiki-extensions-Abusefilter/master/i18n/de.json is redirected to https://raw.githubusercontent.com/Wikimedia/mediawiki-extensions-Abusefilter/master/i18n/de.json. But it uses \Http::get() function without the option [ 'followRedirects' => true ] returns only empty string "" and always ends up with the result massage "Found no new translations".

Event Timeline

Change 548785 had a related patch set uploaded (by Lens0021; owner: Lens0021):
[mediawiki/extensions/LocalisationUpdate@master] Allow to follow redirect for fetching files

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

Lens0021 renamed this task from Http::get of HttpFetcher::fetchFile() should follow redirects to GET request of HttpFetcher::fetchFile() should follow redirects.Nov 5 2019, 4:55 PM

Change 548785 merged by jenkins-bot:
[mediawiki/extensions/LocalisationUpdate@master] Allow to follow redirect for fetching files

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

Jdforrester-WMF renamed this task from GET request of HttpFetcher::fetchFile() should follow redirects to LocalisationUpdate's GET request of HttpFetcher::fetchFile() should follow redirects.Nov 5 2019, 6:57 PM
Jdforrester-WMF closed this task as Resolved.
Jdforrester-WMF assigned this task to Lens0021.
Jdforrester-WMF removed a project: Patch-For-Review.