Last modified: 2012-09-29 19:30:27 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 T24285, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22285 - File name too long, impossible to create a thumbnail (limit uploaded file name length).
File name too long, impossible to create a thumbnail (limit uploaded file nam...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-27 09:19 UTC by deletesoftware
Modified: 2012-09-29 19:30 UTC (History)
6 users (show)

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


Attachments

Description deletesoftware 2010-01-27 09:19:51 UTC
This (deleted) file cannot have thumbnails:

http://commons.wikimedia.org/wiki/File:Устройство_приемно-контрольное_охранно-пожарное_взрывозащищенное_с_видом_взрывозащиты_Искробезопасная_электрическая_цепь_УПКОП135-1-1.JPG

The thumbnail page said:

===
Error generating thumbnail

Error creating thumbnail: convert: unable to open image `/mnt/thumbs/wikipedia/commons/thumb/1/17/Устройство_приемно-контрольное_охранно-пожарное_взрывозащищенное_с_видом_взрывозащиты_Искробезопасная_электрическая_цепь_УПКОП135-1-1.JPG/393px-Устройство_приемно-контрольное_охранно-пожарное_взрывозащищенное_с_видом_взрывозащиты_Искробезопасная_электрическая_цепь_УПКОП135-1-1.JPG': File name too long.
===
Comment 2 Bryan Tong Minh 2011-05-15 12:43:55 UTC
Is there a proper way to determine the maximum path length and filename length?
Comment 3 Dan Collins 2011-07-16 03:08:03 UTC
ext3, which I assume is used by the Wikimedia servers, has a maximum file name length of 255 bytes, as indicated by a very simple google search. If you're interested, NTFS is 255 characters. There is no maximum path length in ext3, it's 32Kchars in NTFS. If these limits are exceeded, things are likely to get confusing, so use shorter filenames. Since we don't want to design our own file system, closing this wontfix.
Comment 4 deletesoftware 2011-07-16 06:43:44 UTC
Sorry, I am not asking to make it possible to use infinite file names, but to make it less easy to bump into the limit that way.

Why not warn the uploader before he chooses a name which would cause problems?
Comment 5 Tomer A. 2011-10-07 15:04:39 UTC
On 1.19alpha (r99208) the upload form prevents one from uploading a file with a name which is too long. However, the error message received is wrong.  

Instead of indicating that the file name is too long it gives the following error message: The filename ... contains characters that are not allowed in page titles. Please rename the file and try uploading it again.
Comment 6 Bryan Tong Minh 2011-10-07 18:21:45 UTC
Dedicated message in r99224.
Comment 7 db [inactive,noenotif] 2012-09-29 19:30:27 UTC
Already fixed

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


Navigation
Links