Page MenuHomePhabricator

Allow maintenance/Generate.php to be run without a LocalSetting
Closed, ResolvedPublic

Description

Would it be possible to patch the rETXF maintenance/Generate.php script to use the feature coded in rMW7dcfbf2a6263: Allow some maintenance scripts to be called without a LocalSettings?

This script converts the data from rETXF trusted-hosts.txt to PHP and JSON format.

I tried to upload a patch today to update the list of trusted proxies but was unable to populate the rETXF trusted-hosts.php and rETXF trusted-hosts.json files with the updated data from rETXF trusted-hosts.txt. AFAICS the script seems to expect not only a MW_INSTALL_PATH but actually a MediaWiki installation.

Considering the script purpose, it would would be useful to allow to run it standalone for proxy data updates.

Thank you

Event Timeline

Change 893543 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/TrustedXFF@master] Generate: Allow script to run without LocalSettings

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

Change 893543 merged by jenkins-bot:

[mediawiki/extensions/TrustedXFF@master] Generate: Allow script to run without LocalSettings

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

Change 984267 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/TrustedXFF@master] generate.php: Remove requireExtension to run without LocalSettings

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

Change 984267 merged by jenkins-bot:

[mediawiki/extensions/TrustedXFF@master] generate.php: Remove requireExtension to run without LocalSettings

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