Page MenuHomePhabricator

Request for static config file on the beta cluster returns a 403
Closed, InvalidPublic

Description

A request to https://meta.wikimedia.beta.wmflabs.org/static/current/extensions/MobileApp/config/android.json returns a 403 (Forbidden) response. Is this intentional? It would be handy to be able to test remote config changes on the beta cluster before they hit production.

Event Timeline

Mholloway created this task.Apr 4 2017, 4:40 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 4 2017, 4:40 PM
hashar added a subscriber: hashar.Apr 5 2017, 10:11 AM

That is defined in operations/mediawiki-config.

static/current/extensions is a symbolic link to /srv/mediawiki/php/extensions

/srv/mediawiki/php is mediawiki-config symbolic link /php. It points to the current version eg php-1.29.0-wmf.19 when beta uses php-master.

Extensions assets path is $wgExtensionAssetsPath = /w/extensions (forged from $wgResourceBasePath = '/w').

So instead of /static I think you should use /w/extensions. That is rewritten by Apache to point to /w/static.php which does the routing.

Eg:

https://meta.wikimedia.beta.wmflabs.org/w/extensions/MobileApp/config/android.json

All the details are on the rather long T99096: Make Varnish cache for /static/$wmfbranch/ expire when resources change within branch lifetime

Mholloway closed this task as Invalid.Apr 5 2017, 2:33 PM

Thank you, @hashar! I've updated our team wiki to reflect this.