Last modified: 2012-08-04 20:48:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14338 - Deleting image larger than 32767 bytes fails
Deleting image larger than 32767 bytes fails
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.11.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2008-05-29 21:36 UTC by Simeon Veldstra
Modified: 2012-08-04 20:48 UTC (History)
1 user (show)

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


Attachments

Description Simeon Veldstra 2008-05-29 21:36:30 UTC
Deleting an image fails when the filesize is larger than 32767
bytes.

mediawiki attempts to store the size of deleted files in the
fs_size column of table filearchive. The fa_size attribute is
specified as a smallint type, stored in two bytes.

Using a postgres backend, at least, attempts to delete files
larger than 32767 bytes fail with a database exception. 

Executing the following query in the wiki database solves the
problem:

ALTER TABLE filearchive ALTER COLUMN fa_size TYPE integer;
Comment 1 Antoine "hashar" Musso (WMF) 2008-08-28 17:02:01 UTC
Looks like it got fixed with r26086. Should be fine now when upgrading.

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


Navigation
Links