Last modified: 2010-05-15 15:29: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 T2538, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 538 - Uploading of zero byte images without name
Uploading of zero byte images without name
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.3.x
All All
: Normal normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks: 202
  Show dependency treegraph
 
Reported: 2004-09-20 14:45 UTC by Alfio Puglisi
Modified: 2010-05-15 15:29 UTC (History)
1 user (show)

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


Attachments

Description Alfio Puglisi 2004-09-20 14:45:44 UTC
If you leave the filename field empty and just press the "upload" button, a zero
byte file without name will be uploaded and registered in recent changes.
Attempting to edit the corresponding page will result in an invalid name error.
Comment 1 Brion Vibber 2004-09-20 15:48:46 UTC
We need to stamp out these silly problems once and for all.

Make sure it's fixed in both branches...
Comment 2 Antoine "hashar" Musso (WMF) 2004-09-20 16:00:37 UTC
in cvs it reports an sql error:
INSERT INTO image
(img_name,img_size,img_timestamp,img_description,img_user,img_user_text) VALUES
(NULL,'0','20040920155648','ok','3','Hashar')

Taking care of this bug.
Comment 3 Antoine "hashar" Musso (WMF) 2004-09-20 16:27:15 UTC
The upload form now print an 'emptyfile' error message if filename is empty.
Comment 4 Thomas R. Koll 2004-09-21 16:50:54 UTC
getting error 'emptyfile' if I re-upload a file.

reproduced it by uploading a file which already existis.
Comment 5 Antoine "hashar" Musso (WMF) 2004-09-21 17:51:23 UTC
Reupload form use a different variable for the name. Should be fixed now.

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


Navigation
Links