Red Hat Bugzilla – Bug 190373
File update breaks mediawiki
Last modified: 2007-11-30 17:11:31 EST
Description of problem:Upgrade of file utility breaks MediaWiki
Version-Release number of selected component (if applicable):4.17.2
Steps to Reproduce:
1. Version of file that comes with FC5/amd64 (file-4.16-6.2), when run on
microsoft office documents, typically returns application/msword. file 4.17.2,
which was recently pushed out through the update channel, returns nothing, which
causes Mediawiki to break when it tries to verify the extension of uploaded
files with the mime type detected. Reverting to the old file package fixes things.
I should note that you must configure mediawiki to allow office documents to be
directly bitten by this and mediawiki, but also that some other software that
depends on magic and file to detect mimetypes also is bitten by this change.
This kind of change is probably better made between major fedora releases than
rvokal@garfield ~$ file -i ipsec.doc
rvokal@garfield ~$ file ipsec.doc
ipsec.doc: Microsoft Office Document
rvokal@garfield ~$ rpm -q file
Do you have some specific file which is not correctly recognized? Can you attach it?
It actually seems to be ok with .doc files, but .ppt files tend to break. I
can't provide the actual powerpoints that caused it to fail (due to HIPPA
requirements), but I can point you at some other unrelated ppt files that also
fail. Download any of the .ppt files from:
tremor:~$ file -bi ./notes/spring-2006/comp_bio03510/lecturenotes/LecturesPart01.ppt
Created attachment 131881 [details]
*.ppt files entry in ./magic/magic.mime has been fixed
line 841 has been replaced by line 852
Created attachment 131882 [details]
ppt magic entry has been fixed
apply patch to file/magic/magic.mime
Patch applied on rawhide. Thanks
The same issue, but with .xls file (the file has the same magic).
The patch fixes it too.
Maybe ship rawhide's version as update for FC5?