While creating an MLEB bundle, melange.php create-archive fetches the installation instructions from mediawiki.org for inclusion in the INSTALL file.
The request currently fails with 403 Forbidden, which results in an empty INSTALL file and PHP warnings:
text $ php melange.php create-archive PHP Warning: file_get_contents(https://www.mediawiki.org/w/api.php?action=query&titles=MediaWiki%20Language%20Extension%20Bundle/installation&prop=revisions&rvprop=content&format=json&formatversion=2): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden ...
This blocks creating a complete MLEB release archive. T435318 tracks the MLEB 1.46 release.
Acceptance criteria
- melange.php create-archive can fetch the MLEB installation instructions from mediawiki.org without receiving a 403 response.
- The generated INSTALL file is non-empty and contains the expected installation instructions.
- Creating the archive no longer produces the PHP warnings shown above.
QA plan
Run:
php melange.php create-archive
Verify that:
- the command completes without the reported HTTP/PHP warnings;
- the generated INSTALL file is non-empty;
- the file contains the expected installation documentation.
No additional automated test is required for this small external-request compatibility fix.