Last modified: 2014-07-18 15:12:16 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 T70035, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68035 - File description displays wrong size
File description displays wrong size
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
Media storage (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-15 14:34 UTC by Yann Forget
Modified: 2014-07-18 15:12 UTC (History)
7 users (show)

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


Attachments

Description Yann Forget 2014-07-15 14:34:15 UTC
Hi, On
https://commons.wikimedia.org/wiki/File:Stained_glass_window_at_the_16th_Street_Baptist_Church_in_Birmingham.jpg (below see File history)
the file description says that after moving the file, the size is 1 Gb, although the size is 1.71 MB.
The size before moving is wrong too. It says 52.45Kb.
Comment 1 Tisza Gergő 2014-07-15 17:07:38 UTC
That's plain wikitext. Maybe an issue with BetacommandBot?
Comment 2 Betacommand 2014-07-15 17:16:27 UTC
This is an ancient edit. I dont have any logs/records on this anymore. However I suspect that it was a bug in my calculations for file size. I was exactly 1 magnitude larger than it should have been.
Comment 3 Yann Forget 2014-07-17 15:45:28 UTC
Please explain how this is invalid? How the BetacommandBot could add a wrong file size?
Comment 4 Betacommand 2014-07-17 17:13:56 UTC
Its invalid as this isnt an issue with mediawiki/wikimedia and rather an issue with one of my old scripts. 

The API provides file size in bytes. See https://commons.wikimedia.org/w/api.php?action=query&titles=File:Stained_glass_window_at_the_16th_Street_Baptist_Church_in_Birmingham.jpg&prop=imageinfo&iiprop=timestamp|user|size&format=jsonfm 

In this case the API returned 1793980 which for most humans doesnt make much sense. I ran a custom conversion to get the Kb/Mb/Gb values. In this particular case I was exactly 1 magnitude (Mb/Gb) off. I suspect it was an error in the conversion equation that I was using that caused what you noted and that I had swaped the Mb suffix with the Gb suffix.
Comment 5 Yann Forget 2014-07-17 17:21:32 UTC
OK, thanks for the explanation.
The most important is, can it be corrected? either 
1. directly; 2. by moving the file again (to preserve the history); 3. last there is still the option to delete and reupload.
Comment 7 Yann Forget 2014-07-18 15:12:16 UTC
ok, done. Thanks.

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


Navigation
Links