Page MenuHomePhabricator

Title uniqueness is matched by appending extension
Closed, InvalidPublic

Description

Author: wikibugs

Description:
Steps to reproduce:

  1. Upload a png file and accept the given Title (say file name is MyMovie.png so title will be MyMovie)
  1. Uplaod a jpg file with same file name (different image) and accept the given file name (so file name is MyMovie.jpg and title will be MyMovie)

Files can be uploaded successfully.


Version: unspecified
Severity: minor
URL: http://commons.prototype.wikimedia.org/uwd/Special:UploadWizard

Details

Reference
bz26067

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:17 PM
bzimport added a project: UploadWizard.
bzimport set Reference to bz26067.

neilk wrote:

This does not seem like a bug. In MediaWiki, only the full "Title" is checked for uniqueness, which includes the extension. A Title in MediaWiki looks like:

File:My_Awesome_Movie.png

And forms part of the URL.

In the UploadWizard interface, we are hiding the extension and the underscores/spaces conversions, but it is all added back again, behind the scenes.