Page MenuHomePhabricator

action=render does not expand img src. Breaks Foreign repos in some situations
Open, MediumPublic


Steps to reproduce (Not on a Wikimedia wiki)

  1. You need $wgUploadPath to be a relative url (This is the default, however not what is set on Wikimedia)
  2. Put a (local) image on some page
  3. View that page with url parameter ?action=render . Expected behaviour, no relative urls (like links). Actual behaviour, the src attribute on <img> tags are still relative

This would cause breakage if using Foreign repos (including ForeignDBRepo) and the foreign image description page had an image from the foreign repo on it (Since the relative url is just copied, but no longer points to the right server).

Reported on irc by cboltz

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:31 AM
bzimport set Reference to bz59851.
bzimport added a subscriber: Unknown Object (MLST).
Bawolff created this task.Jan 9 2014, 1:19 AM
Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:37 PM
Restricted Application added subscribers: Steinsplitter, Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:37 PM
Restricted Application added a project: Commons. · View Herald TranscriptJun 19 2016, 7:50 PM