Page MenuHomePhabricator

Docker: cannot access static resources under /w/extensions or /w/skins
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

  • HTTP 403 errors on any resource under /w/extensions or /w/skins
  • This applies to things like icons, as well as ULS IME js files, web fonts and anything else not served through the PHP endpoints

What should have happened instead?:

  • Resources get served

What works

  • Cloning the extension repos directly into the extensions sub directory of the mediawiki repo rather than symlinking
  • mount --bind the extension and skin directories directly into the mediawiki repo:
    • mount --bind /path/to/mw-extensions /path/to/mediawiki/extensions

It's possible Docker just isn't compatible with the symlink method, but if it is, it should either work out-of-the-box, or DEVELOPERS.md should explain what you need to do to make it work. If it is not, the canonical way to "mount" extensions should be detailed in DEVELOPERS.md instead.

Event Timeline

jeena set the point value for this task to 1.
jeena moved this task from Backlog to In Progress on the User-jeena (Sprint 8/18-8/31 2021) board.

Change 713680 had a related patch set uploaded (by Jeena Huneidi; author: Jeena Huneidi):

[mediawiki/core@master] Update DEVELOPERS.md

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

Change 713680 merged by jenkins-bot:

[mediawiki/core@master] Update DEVELOPERS.md

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