Page MenuHomePhabricator

No "Next" button and no error when trying to upload a file with duplicative name
Closed, ResolvedPublic

Description

No "Next" button and no error when trying to upload a file with duplicative name,

After the description screen has been filled in, I click on Next and then I am returned to the description screen with all the fields still filled-in and no error messages and no NEXT button. There is nothing that can be done to progress the wizard to the final step. I repeated the wizard from the start and exactly the same thing happened. Help! [[User:Kerry Raymond|Kerry Raymond]]

I have successfully uploaded a number of photos earlier in the day. There was nothing particularly different about the failed one that I can see (a relatively small JPG) sourced from an out-of-copyright old newspaper (the sort of item I often upload). [[User:Kerry Raymond|Kerry Raymond]]

The file name is 'Remember Belgium.jpg' - no weird characters. 05:14, 16 March 2016 (UTC)

A file with that name was uploaded in 2009. [[File:Remember Belgium.jpg|50px]] Are you getting the error "A file with this name exists already. If you want to replace it, go to the page for File:Remember_Belgium.jpg and replace it there." [[User:Delphi234|Delphi234]]

OK, I tried to load the Remember Belgium.jpg file again. Exactly the same behaviour as before AND absolutely no error message of any kind. But at least it seems we have pinned down the bug to the case where the file name is already in use. I tried to rename the file in the Description screen which causes the "barber poll" effect on that text box as I type in other titles but doesn't cause a NEXT button to appear to progress things. [[User:Kerry Raymond|Kerry Raymond]]

https://commons.wikimedia.org/wiki/Commons:Village_pump#Upload_wizard_failing

Event Timeline

Restricted Application added subscribers: Steinsplitter, Aklapper. · View Herald Transcript

I always get the error like I should:

pasted_file (946×1 px, 126 KB)

(Other than the file name being displayed with an underscore, submitted https://gerrit.wikimedia.org/r/278332 to fix that.)

A copy of the problematic file could help.

matmarex triaged this task as High priority.

Thanks to T132356 I was able to reproduce this – turns out this only happens when the extension of the new file differs from the existing file only by case (e.g. "jpg" vs "JPG").

And then I realized I've already fixed it recently in https://gerrit.wikimedia.org/r/#/c/281538/, I discovered that issue separately and didn't realize it was the cause of this. But that patch fixes the big issue here (no error message and no "Next" button). It'll be deployed to Commons this Wednesday with MediaWiki version 1.27.0-wmf.21 per https://www.mediawiki.org/wiki/MediaWiki_1.27/Roadmap.

UploadWizard should actually warn about this before trying to submit the files, but that's a smaller problem. I'll track that on T132356.