Page MenuHomePhabricator

API upload warning exists-normalized returns wrong file (the file that is uploaded, not the file that exists)
Closed, ResolvedPublic

Description

Original bug title:
API upload warning exists-normalized returns wrong file (the file that is uploaded, not the file that exists)


See https://commons.wikimedia.org/w/index.php?title=Commons:Upload_help&oldid=101150677#Cannot_find_existing_file.3F and http://bug-attachment.wikimedia.org/attachment.cgi?id=13083 where I tried to upload a PNG (and there was not PNG uploaded yet but a JPEG)


Version: 1.22.0
Severity: normal

Details

Reference
bz52699

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:04 AM
bzimport set Reference to bz52699.
bzimport added a subscriber: Unknown Object (MLST).

To clarify, I think its more useful to return the "normalizedFile"-title rather than just the "file"-title. Otherwise the user has no way to find out which the normalized filename is, that exists.

Change 78523 had a related patch set uploaded by Rillke:
Return normalized file name on warning "exists-normalized"

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

Change 78523 merged by jenkins-bot:
Return normalized file name on warning "exists-normalized"

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

This change should be deployed to WMF wikis with 1.22wmf17, see https://www.mediawiki.org/wiki/MediaWiki_1.22/Roadmap for the schedule.