Last modified: 2013-09-09 20:15:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46772, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44772 - Commons' UploadWizard shows wrong thumbnail
Commons' UploadWizard shows wrong thumbnail
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
Macintosh Mac OS X 10.6
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://commons.wikimedia.org/wiki/Spe...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-08 00:48 UTC by jsayre64
Modified: 2013-09-09 20:15 UTC (History)
8 users (show)

See Also:
Web browser: Apple Safari
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
PDF print preview showing the problem (214.22 KB, application/pdf)
2013-02-08 00:48 UTC, jsayre64
Details
PDF print preview showing when the problem happened again (192.12 KB, application/pdf)
2013-09-09 15:59 UTC, jsayre64
Details

Description jsayre64 2013-02-08 00:48:14 UTC
Created attachment 11752 [details]
PDF print preview showing the problem

I'm on Mac OS X 10.6, Safari, but I bet this problem could occur on other systems and browsers also.

I was in the middle of uploading multiple images with the UploadWizard tool on Commons, and it showed the same thumbnail twice for two different files (different images).

See the attached PDF print preview showing the bug. For the first file, a different thumbnail should have been displayed.
Comment 1 jsayre64 2013-02-08 01:08:51 UTC
Wait - in the UploadWizard, I may have actually selected the same file twice by accident, because when I published all the uploads, the last file previewed (which 'correctly' had the same thumbnail displayed as the first file) failed to upload. The red error message said that it was a duplicate of the first file (the one with the wrong thumbnail), which was the first upload to be published.

But I have uploaded the correct image for the first file, and right now I am working on uploading the last file that I attached previously to the UploadWizard (the one that failed).
Comment 2 Nischay Nahata 2013-02-08 05:05:37 UTC
Closing this as Invalid.
Comment 3 jsayre64 2013-02-11 01:21:44 UTC
Hold on - I didn't select the same file twice. Look at the attached PDF screenshot. The files all have different names. But the UploadWizard, for some reason, "thought" that I had selected the same image twice.

So this IS a real bug.
Comment 4 Bawolff (Brian Wolff) 2013-02-11 01:40:54 UTC
(In reply to comment #3)
> Hold on - I didn't select the same file twice. Look at the attached PDF
> screenshot. The files all have different names. But the UploadWizard, for
> some
> reason, "thought" that I had selected the same image twice.
> 
> So this IS a real bug.

Im going to guess this only happens some of the time. If there is any chance you could make a list of steps that would result in the bug showing up always, that would help a lot. (Assuming that is even possible)
Comment 5 Nischay Nahata 2013-02-11 15:02:03 UTC
Right, I should be able to reproduce this.
Comment 6 Nischay Nahata 2013-03-14 19:05:53 UTC
I am marking this as UNCONFIRMED due to lack of steps to reproduce and improper bug report. The bug reporter seemed confused and there's a slight chance that there was no actual error here.. 

If someone else comes across this please reopen and try to list some steps to reproduce this bug.
Comment 7 jsayre64 2013-03-14 23:33:18 UTC
How do you define "error"? Does there have to be red text that shows up on the page? That didn't happen, but the tool DID produce the same thumbnail twice for two different files on my computer that I selected. The tool then published the same photo twice, under different file names.

I don't know of any steps that would produce this problem again, and it hasn't happened again, but I do have evidence in the PDF file attached to this bug report.

Does anyone know of a different bug report here or a complaint on Commons about this problem?
Comment 8 Bawolff (Brian Wolff) 2013-03-15 03:09:39 UTC
(In reply to comment #7)
> How do you define "error"? Does there have to be red text that shows up on
> the
> page?

Any sort of unexpected behaviour can be considered an error. Don't worry your issue meets the definition.
Comment 9 Pete F 2013-03-17 17:46:04 UTC
I can confirm this bug, and probably help narrow down the circumstances. It has happened to me several times. For me, it happens in combination with an issue in which I cannot add multiple files, though I am allowed to proceed without a warning box.

I am also using Safari (version 5.1.7 on Mac OS 10.6.8).

It seems to me that this browser is incapable of permitting the selection of multiple files during a single transaction in the Upload Wizard.

1. click "upload file" in Commons, invoking the wizard.
2. click "select a media file to share".
3. in the OS file selection box, select several image files using shift or command key.
4. click "choose"
5. The upload wizard will behave as though you only chose one of the files. It is the last of the files selected in step 3, but the thumbnail displayed is from the first of the files. (The file name displayed is correct.)
Comment 10 jsayre64 2013-03-17 17:49:53 UTC
(In reply to comment #9)

Yeah, that inability to select more than one file at once happens to me too.

> I can confirm this bug, and probably help narrow down the circumstances. It
> has
> happened to me several times. For me, it happens in combination with an issue
> in which I cannot add multiple files, though I am allowed to proceed without
> a
> warning box.
> 
> I am also using Safari (version 5.1.7 on Mac OS 10.6.8).
> 
> It seems to me that this browser is incapable of permitting the selection of
> multiple files during a single transaction in the Upload Wizard.
> 
> 1. click "upload file" in Commons, invoking the wizard.
> 2. click "select a media file to share".
> 3. in the OS file selection box, select several image files using shift or
> command key.
> 4. click "choose"
> 5. The upload wizard will behave as though you only chose one of the files.
> It
> is the last of the files selected in step 3, but the thumbnail displayed is
> from the first of the files. (The file name displayed is correct.)
Comment 11 Pete F 2013-03-18 03:24:37 UTC
Oh, another detail, perhaps useful: this process seems to bypass the Upload Wizard's ability to detect that a file is a duplicate. For instance, this upload resulted from the bug currently under discussion; but ordinarily, an upload like this would not be permitted. http://commons.wikimedia.org/wiki/File:Participants_in_the_Wikipedia_and_Legislative_Data_workshop_03.jpg
Comment 12 jsayre64 2013-03-18 04:16:42 UTC
Proof that the UploadWizard uploaded the same file twice: I had to upload a new version of this image just below.

http://commons.wikimedia.org/wiki/File:North_Umpqua,_Deadline_Falls.jpg

(In reply to comment #0)
> Created attachment 11752 [details]
> PDF print preview showing the problem
> 
> I'm on Mac OS X 10.6, Safari, but I bet this problem could occur on other
> systems and browsers also.
> 
> I was in the middle of uploading multiple images with the UploadWizard tool
> on
> Commons, and it showed the same thumbnail twice for two different files
> (different images).
> 
> See the attached PDF print preview showing the bug. For the first file, a
> different thumbnail should have been displayed.
Comment 13 Nischay Nahata 2013-05-19 07:46:41 UTC
(In reply to comment #10)
> Yeah, that inability to select more than one file at once happens to me too.

This seems like another bug, but then how did you upload multiple files in the screenshot? does this happen only sometimes that you can't select more than one file?
Comment 14 jsayre64 2013-05-19 14:51:01 UTC
Yes, that's another bug that only appears sometimes (and not at all for me recently). What happens is that when I click "Select media files to share" I use the "shift" key on my computer to select two or more files to upload at once, but when I click "Choose" the UploadWizard acts as if I had only chosen one file.

It looks like that bug has already been reported: Bug 46845, and it looks like you just commented there.

I think I got around the multiple files bug when uploading the North Umpqua photos back in February by only selecting one file at a time, since I had experienced the multiple files bug many times before.
Comment 15 Nischay Nahata 2013-05-21 10:30:37 UTC
I was able to reproduce this bug using crossbrowsertesting.com but I can't work on this without a mac. Will try pinging someone else to work on this one.
Comment 16 Nischay Nahata 2013-05-21 10:33:58 UTC
Googling shows this is a bug in Safari http://stackoverflow.com/questions/15766644/any-workarounds-for-the-safari-html5-multiple-file-upload-bug but we need to be sure
Comment 17 Derk-Jan Hartman 2013-05-21 19:28:19 UTC
Seems limited to Safari 5.1 (Definitely windows, possibly mac too).

We could add a browser check and remove(/not add) the multiple attribute from(/to) the control. Not too nice, but it would do the trick.
Comment 18 Gerrit Notification Bot 2013-05-21 20:25:02 UTC
Related URL: https://gerrit.wikimedia.org/r/64851 (Gerrit Change Ib60dd151965310d0a567c7d888b4638cc48a696d)
Comment 19 jsayre64 2013-05-21 23:08:31 UTC
So, Nischay, you think that the multiple file upload problem is related to this wrong thumbnail problem by code?

(In reply to comment #16)
> Googling shows this is a bug in Safari
> http://stackoverflow.com/questions/15766644/any-workarounds-for-the-safari-
> html5-multiple-file-upload-bug
> but we need to be sure
Comment 20 Nischay Nahata 2013-05-22 06:19:48 UTC
(In reply to comment #19)

I think so, but I am not sure. We can't investigate the wrong thumbnail problem until I am able to upload multiple files.

I think this bug can also be reproduced in Safari/Win7, I will setup that and try investigating further.
Comment 21 Nischay Nahata 2013-05-22 06:33:01 UTC
I tried to upload multiple files but only one uploads successfully and the thumbnail is broken for that one :p

<rant>Switch to a better browser<rant/>
Comment 22 Nischay Nahata 2013-06-13 13:37:33 UTC
I have abandoned the change as the workaround wasn't working well.

Also closing as WONTFIX; its a problem with Safari https://github.com/blueimp/jQuery-File-Upload/issues/703
Comment 23 jsayre64 2013-06-13 15:15:54 UTC
Okay, well thanks so much for taking the time to investigate this.

(In reply to comment #22)
> I have abandoned the change as the workaround wasn't working well.
> 
> Also closing as WONTFIX; its a problem with Safari
> https://github.com/blueimp/jQuery-File-Upload/issues/703
Comment 24 Ryan Kaldari 2013-06-13 17:15:27 UTC
I've also noticed problems uploading multiple files from Safari. Should we just disable multifile upload from Safari completely?
Comment 25 Derk-Jan Hartman 2013-06-13 17:17:28 UTC
Safari windows in that case. Always worked just fine for me.
Comment 26 Nischay Nahata 2013-06-13 17:55:55 UTC
(In reply to comment #24)
> Should we just disable multifile upload from Safari completely?

It's just with some particular versions so doesn't make sense to disable it completely. Is there a reliable way to detect Safari and its version?

(In reply to comment #25)
> Safari windows in that case. Always worked just fine for me.

As I said its with some versions only AFAIK
Comment 27 jsayre64 2013-09-09 15:59:03 UTC
Created attachment 13259 [details]
PDF print preview showing when the problem happened again

It happened again today when I was using the wizard.
Comment 28 Andre Klapper 2013-09-09 19:28:44 UTC
The bug still exists if you use Safari, because it was decided to NOT fix it ("WONTFIX"). See comment 26.
Comment 29 jsayre64 2013-09-09 20:15:49 UTC
Yes, I understand that this hasn't been fixed. I'm just reporting that it happened again for me for the first time since February.

(In reply to comment #28)
> The bug still exists if you use Safari, because it was decided to NOT fix it
> ("WONTFIX"). See comment 26.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links