Page MenuHomePhabricator

Upload Wizard for Wikimedia Commons does not complete process, freezes after last click, if only one file was selected
Closed, ResolvedPublic

Description

Sanborn Manhattan V. 1 Plate 012 publ. 1905.jpg (6×4 px, 7 MB)

Screen Shot 2016-05-12 at 8.26.49 PM.png (968×1 px, 158 KB)

  1. Open upload Wizard in Safari
  2. Follow all instructions to upload the attached file
  3. Click on the last "Next" button
  4. I should see a spinning gear, and the messages (progressively) "Queued", something, "Publishing", followed by "Thanks for uploading!"
  5. What I see is the static picture on the attached screenshot

I am using Mac OS 10.11.4 and Safari 9.1. I get the same result with Chrome Version 50.0.2661.94 (64-bit).

Just for protocol the same problem appears using Window7/Opera.

Event Timeline

matmarex added a project: UploadWizard.
matmarex updated the task description. (Show Details)
matmarex added subscribers: Nemo_bis, darthbhyrava, JGS25 and 4 others.

I'm sorry, this is a bug caused by a really stupid mistake I made in 189a5572cc08ac46dc0dba1f7293d5967ee8c7ba, which was deployed to Commons yesterday evening. The upload would always fail if you selected only one file (uploads of multiple files would succeed, which is presumably why we missed it in testing, and why we didn't notice the fall in numbers of files being uploaded with UploadWizard).

I have already deployed a workaround to Commons: https://commons.wikimedia.org/w/index.php?title=MediaWiki:Common.js&diff=196165190&oldid=190856441 and the issue should be fixed there. I'll have the proper patch deployed on Monday (and I'll revert the MediaWiki:Common.js workaround).

Change 288610 had a related patch set uploaded (by Bartosz Dziewoński):
uw.controller.Details: Fix 'Uncaught TypeError: Cannot read property '$element' of undefined'

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

matmarex renamed this task from Upload Wizard for Wikimedia Commons does not complete process, freezes after last click to Upload Wizard for Wikimedia Commons does not complete process, freezes after last click, if only one file was selected.May 13 2016, 2:24 PM
matmarex triaged this task as Unbreak Now! priority.

Change 288610 merged by jenkins-bot:
uw.controller.Details: Fix 'Uncaught TypeError: Cannot read property '$element' of undefined'

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

Change 288715 had a related patch set uploaded (by Bartosz Dziewoński):
uw.controller.Details: Fix 'Uncaught TypeError: Cannot read property '$element' of undefined'

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

I think this is related but I'm not 100% sure.
https://en.wikipedia.org/wiki/User_talk:Antonybarkur#Image_upload_error

I am getting the following error while uploading an image: Unknown error: "{"xhr":{"readyState":4,"responseText":"'origin' parameter does not match Origin header\n","status":403,"statusText":"Forbidden"},"textStatus":"error","exception":"Forbidden

Change 288715 merged by jenkins-bot:
uw.controller.Details: Fix 'Uncaught TypeError: Cannot read property '$element' of undefined'

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