Upload from flickr randomly fails for some images sharing same title in a set or sequential uploads
Closed, ResolvedPublic

Description

Author: russavia.wikipedia

Description:
I have attempted to upload http://www.flickr.com/photos/emmanueldyan/sets/72157626778462048/ using the Flickr option in Upload Wizard and I am getting error "You are already uploading the file "Thol Lake - Gujarat, India.jpg"." Once I managed to close the pop-up warning, the wizard decides it only wishes to upload a total of 2 images from the set, even though the rest are not on Commons. This error also occurs with other sets I have tried from other flickr photographers.


Version: master
Severity: major
URL: http://test.wikipedia.org/wiki/Special:UploadWizard
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=43590

bzimport set Reference to bz43320.
bzimport created this task.Dec 21 2012, 3:16 PM
  • Bug 43322 has been marked as a duplicate of this bug. ***

Able to reproduce, but not sure what's going on here.

I tried to reproduce this bug on http://test.wikipedia.org/wiki/Special:UploadWizard I got the error "You are already uploading the file "Thol Lake - Gujarat, India.jpg"." a lot of times all overlapped (that should be a separate bug), but after closing all those dialogs there were just 2 remaining images. My conclusion is- since all the files in this set are named the same i.e. "Thol Lake - Gujarat, India.jpg" their uploading gets cancelled and only one or two of the images gets through. However, those two still had the same name for me which doesn't make sense.

Nischay report matches my own experience (in [[bugzilla:43369]]): seems to be triggered by the fact that files from the set share the same name (which make kinda sense given the error message) ; but files that succeed in being selected may still share the same name.

  • Bug 43369 has been marked as a duplicate of this bug. ***

The results seem quite random, I think it fails less images when the computer is slow enough not to retrieve all of the images in the same moment.
For two sets of similar size, in one I got only one "You are already uploading the file" error, in another a dozen.

Note that for some reason I'm also shown the warning about really wanting to abandon the page, even though I've not tried to close anything.

https://gerrit.wikimedia.org/r/#/c/42775/ renames images if found with similar names.. The user already has an option to enter a reasonable name afterwards and this doesn't block him from uploading any images as with the set given above.

Doing a bunch of fixes and testing Nischay's patch. I think making the images titles be '$Title - $ID.extension' is better than '$Authoer - $ID.extenson'. Will submit a fix.

Thanks Yuvi for being the catalyst here :)

This fix has a bug. Please see inline comments at https://gerrit.wikimedia.org/r/#/c/42775/6

Thanks for your work on this! Sorry I missed doing the review earlier.

Related URL: https://gerrit.wikimedia.org/r/58998 (Gerrit Change Id1b7f45f08f727a999d700863bb0830c73e389c5)

Submitted a followup

Related URL: https://gerrit.wikimedia.org/r/59000 (Gerrit Change Icae2e54866aa63531b4eef1262a0798bcc51cf8f)

Also, that fix only fixes it for photosets, not for sequential single uploads. I checked in a new fix here: https://gerrit.wikimedia.org/r/#/c/59000/

Sorry I did a separate commit, didn't know you were working on a new one at the same time :)

Hehe, that's okay. I'm testing yours now, will merge in a bit.

Reopening since I'm still seeing the issue for sequential single uploads. I see that the change fixing this has been merged and I'm pretty sure it has also been deployed.

I'm trying to upload http://www.flickr.com/photos/antonescurazvan/152113025/ and sequential images from the photostream

Change 103388 had a related patch set uploaded by Gergő Tisza:
Handle multiple Flickr uploads with identical title

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

Change 103388 merged by jenkins-bot:
Handle multiple Flickr uploads with identical title

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

Gilles moved this task from Untriaged to Done on the Multimedia board.Dec 4 2014, 10:11 AM
Gilles raised the priority of this task from "High" to "Unbreak Now!".
Gilles lowered the priority of this task from "Unbreak Now!" to "High".Dec 4 2014, 11:21 AM

Add Comment