Page MenuHomePhabricator

No thumbnail for previous file version (Commons)
Closed, ResolvedPublic

Description

https://commons.wikimedia.org/wiki/File:Them_Ex-Fire_Power_2.jpg

This is not a singular case. Browsing lots of old files, in past I encountered the same problem on other files as well.

2017-02-18_200834.png (328×780 px, 40 KB)

Update: one more example https://commons.wikimedia.org/wiki/File:Alexandre_Legna.jpg

2017-04-15_182147.png (382×910 px, 33 KB)

Event Timeline

matmarex subscribed.

That version appears to be completely missing, actually. Note how the date is not a link to view that version, and the "revert" link displays an error when clicked.

Looking at the page history, the file only seems to have been uploaded once, but the upload log has two entries. Something is clearly bogus here, but I'm not sure if the file revision has disappeared or if the log entry was incorrectly duplicated. I'll note also that UploadWizard is not supposed to allow uploading new versions of existing files.

added one more example for reference -> https://commons.wikimedia.org/wiki/File:Alexandre_Legna.jpg. But this a slightly different case. If for the originally reported case the upload log displays identical file sizes for 'both' versions: 345 × 500 (33 KB), for this file seems that there were really two different files, according to the upload log displayed in page:
641 × 960 (60 KB) and 720 × 480 (52 KB)

So, not just a duplicated entry?

dr0ptp4kt triaged this task as Medium priority.Aug 7 2017, 4:35 PM
dr0ptp4kt moved this task from Untriaged to Next up on the Multimedia board.
dr0ptp4kt subscribed.

Next action would be to conduct technical root cause analysis, then further scope for potential bugfix.

Change 378702 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/core@master] Block same-file reuploads

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

This looks a lot like a race condition.
For both files mentioned, there are 2 logging entries (one of type upload, one overwrite, both with the exact same timestamp), but the overwrite one doesn't have log_page associated with the correct page (it's 0)
It does look like, for both files, the 2 revisions were in fact different images (Them_Ex-Fire_Power_2.jpg revs have the same dimensions, but a different hash)

I couldn't find any recent occurrences of this exact problem, so it looks like this has been solved by now.

However, I did find similar issues where the exact same file was uploaded twice at exactly the same time (creating the same kind of log entries as well)
That's not as big an issue (the files are not lost), but it creates a messy history...

Change 378702 merged by jenkins-bot:
[mediawiki/core@master] Block same-file reuploads

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

Whoops - shouldn't have closed; hasn't been QA'd yet!

ABorbaWMF subscribed.

Appears to be fixed on beta commons:

Screen Shot 2017-11-03 at 3.34.55 PM.png (602×2 px, 272 KB)