Last modified: 2013-10-23 21:12:41 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 T38050, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36050 - 255 character system filename limit prevents generating thumbnails for files with long names
255 character system filename limit prevents generating thumbnails for files ...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.18.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-17 23:10 UTC by Vitaliy Filippov
Modified: 2013-10-23 21:12 UTC (History)
2 users (show)

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


Attachments

Description Vitaliy Filippov 2012-04-17 23:10:06 UTC
Now it is possible to upload images with names as long as 255 characters into MediaWiki.
It is correct, because filename length limit is such in most filesystems. 
But when MW generates thumbnails, it prepends thumbnail width to the filename limit (in the '500px-' format). So if original file name is too long, the thumbnail isn't generated because it's name length exceeds the limit.
I suggest cutting thumbnail filenames and submitted a patch to Gerrit: https://gerrit.wikimedia.org/r/#change,5213
Comment 1 Bawolff (Brian Wolff) 2012-04-17 23:25:18 UTC
(In reply to comment #0)
> Now it is possible to upload images with names as long as 255 characters into
> MediaWiki.


When did that happen? I thought they were supposed to be limited to 240 bytes since when they get archived they have the timestamp pre-pended to the filename.
Comment 2 Vitaliy Filippov 2012-04-18 12:56:25 UTC
Hm. Thanks. 1.18.2 permits it, I didn't know it was fixed (bug 30202). I'm closing the bug.
Comment 3 Vitaliy Filippov 2012-04-18 12:56:59 UTC
By the way, can I remove my commit from Gerrit?
Comment 4 Bawolff (Brian Wolff) 2012-04-18 19:28:51 UTC
(In reply to comment #2)
> Hm. Thanks. 1.18.2 permits it, I didn't know it was fixed (bug 30202). I'm
> closing the bug.

Wow I had no idea that was so new, I thought it was always like that.

(In reply to comment #3)
> By the way, can I remove my commit from Gerrit?

I think there's some way you can "abandon" commits. I don't know how though.
Comment 5 Bawolff (Brian Wolff) 2013-10-23 21:12:41 UTC
Just as a random note (for reference sake): If the thumbnail name is too big, we now shorten it by replacing the filename with "thumbnail" e.g. 120px-thumbnail.jpg

(By default we do this if >255. On Wikimedia we do this if > 160 characters).

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


Navigation
Links