Page MenuHomePhabricator

transformFilePath complains when $wgLogo points to a dynamic url
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce:

  • Set $wgLogo to something like "/thumb.php?f=Wiki.svg?width=120"
  • Create similar entries for $wgLogoHD
  • Load the wiki and observe that the logo appears

What happens?:
Check the logs for messages like "failed to hash .../thumb.php?f=Wiki.svg?width=120" from OutputPage::transformFilePath()

Over time the log will fill with these superfluous messages.

What should have happened instead?:

MW should recognize that this is not a file and not try to use md5_file on it.

Event Timeline

Change 693478 had a related patch set uploaded (by MarkAHershberger; author: MarkAHershberger):

[mediawiki/core@master] Stop logging and md5'ing if the file does not exist

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

Change 693478 merged by jenkins-bot:

[mediawiki/core@master] Stop logging and md5'ing if the file does not exist

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