Last modified: 2012-08-04 20:48:47 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 T16338, the corresponding Phabricator task for complete and up-to-date bug report information.
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