Last modified: 2013-09-06 15:02:22 UTC
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)
I guess someone has to fiddle with https://github.com/wikimedia/mediawiki-core/blob/5e5579d04cfac26317ff13cd85ed8453a113c10f/includes/api/ApiUpload.php#L567 which receives its result from https://github.com/wikimedia/mediawiki-core/blob/5e5579d04cfac26317ff13cd85ed8453a113c10f/includes/upload/UploadBase.php#L1477
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.