Warn when filename on shared repo clashes with a local repo file
OpenPublic

Description

When you upload an image to Commons, you are not warned when your chosen filename is already used on a local wiki to host another file. Your upload will then show the 'wrong' image if you return to that local wiki. This is confusing behavior

Possible solutions:
1: check 'uselang' and en.wp repo only for a clash
2: eradicated clashes alltogether and outlaw them
3: make hundreds of queries. Due to the many non-shared repositories being fed by Commons, this is probably very difficult to implement due to performance issues.


Version: 1.17.x
Severity: enhancement

bzimport added a project: MediaWiki-Uploading.Via ConduitNov 21 2014, 11:09 PM
bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz23830.
TheDJ created this task.Via LegacyJun 7 2010, 10:46 PM
bzimport added a comment.Via ConduitJun 18 2010, 3:00 PM

Bryan.TongMinh wrote:

The only reasonable solution to this is keeping a global image table I think, and I'm not sure if that is desirable.

Platonides added a comment.Via ConduitJun 18 2010, 3:02 PM

Forbid local uploads!

bzimport added a comment.Via ConduitNov 26 2011, 4:51 PM

rd232 wrote:

If checking all local wikis is not feasible, what about, for SUL accounts, checking just the user's home wiki? That's the most likely collision to cause immediate problems, certainly for Commons.

On the other hand, now that Special:GlobalUsage exists, is it really too expensive to initiate a globalusage query on the proposed filename, and show the user the results if there are any hits?

duplicatebug added a comment.Via ConduitNov 9 2012, 7:04 PM

Maybe the Extension GlobalUsage can give the information (Needs a hook in core, which than can be aborted by the Extension or so)

bzimport added a comment.Via ConduitNov 11 2012, 7:45 PM

Bryan.TongMinh wrote:

(In reply to comment #4)

Maybe the Extension GlobalUsage can give the information (Needs a hook in core,
which than can be aborted by the Extension or so)

No, it can't, since it only tracks links to images that do not exist locally.

Gilles added a project: Multimedia.Via WebNov 24 2014, 3:41 PM
duplicatebug removed a subscriber: duplicatebug.Via WebDec 13 2014, 11:34 AM

Add Comment