Page MenuHomePhabricator

File moves on foreign repo breaks file inclusion
Open, MediumPublicBUG REPORT

Description

When a file is moved on a foreign repo, than all pages on the client using that file has a broken file inclusion.

The problem is, that the purge of pages using the moved file can only be done for local pages, because mediawiki only knows these pages.

Is there a way to keep the other files working, without purging the client pages?

Redirects should not be deleted to not break file inclusion by clients, but without purge on client side that does not help very well.

Steps to test:
On wiki "core" a page A has [[File:Old.png]]
Than on wiki "repo" the file Old.png is moved to New.png
Looking at page A of "core" gives a break file inclusion, because it is using http://localhost/repo/images/9/9a/Old.png as src


Version: 1.21.x
Severity: major

Details

Reference
bz42857

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:57 AM
bzimport set Reference to bz42857.
bzimport added a subscriber: Unknown Object (MLST).

As pointed out by Umherirrender, this will be fixed by https://gerrit.wikimedia.org/r/#/c/80135/ if it gets merged.

gerrit 80135 was successfully merged

That's actually only a partial fix.

*only workd for people like wmf who use thumb_handler.php
*only works for thumbnail urls. If including the full image url, doesn't work.

Aklapper changed the subtype of this task from "Task" to "Bug Report".Feb 15 2022, 9:39 PM
Aklapper removed a subscriber: wikibugs-l-list.