I have a growing problem with files apparently not being detected properly. System is RHEL5.2, and it has MediaWiki 1.13.3 on it. More and more files (it was just some .ppt files, but I think others are being affected now) are being rejected as "corrupt". They are, of course, not "corrupt".. they open just fine, and they are smaller than the file size restrictions for MediaWiki and PHP.
PHP version is php-5.1.6-20.el5_2.1 This is what comes with RHEL, so upgrading that before Red Hat issues an "official" patch is an absolute last-ditch. I would sooner just leave MIME checking disabled than start to manually hack things up on this server. Anyway... MediaWiki was set to use the file command to check MIME types. It looks like every .ppt file I check with file -bi is reported to be "application/msword" I do not know if file uses /etc/mime.types or /etc/httpd/conf/mime.types But neither have a line that associates .ppt with msword Running "strings" against /usr/bin/file does not return any references to any file called mime.types. There is a reference to /usr/share/file/magic That file contains no references to "ppt" or "powerpoint". There is a file called /usr/share/file/magic.mime which contains one line that might potentially have something to do with something: #0 string \320\317\021\340\241\261\032\341 application/powerpoint As it's commented out, though... So, if I comment out the lines that use 'file' in MediaWiki, I still have the same problem. I don't know if MW is checking, or if it's using PHP, or httpd. I cannot find any way to generate more logs or messages. None of the mime.types files I can find are obviously the culprit. What I do have, though, is MIME checking that does not work, and seems to be getting worse. I don't know if that's just a perception from users reporting issues more, or seeing more issues because they're uploading more files, or because more and more files are being incorrectly identified. -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * *********************************************************************** _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
