Author: knight_rider1977
Description:
Upon updating from the 1.17beta to the 1.17rc1 the allowing of office 2007 files is still not detecting the correct mime type for .doc and it does not allow .docx files to be uploaded giving the error of "application/x-opc+zip" are not allowed. The .doc still gives the "File extension does not match MIME type" error.
I attempted to copy the black list to LocalSetting.php and comment out the ones related to office but it crashes the wiki with an internal error:
Internal error
From wikitest
Jump to: navigation, search
error storing file in '/var/tmp/phpdeguPj.docx': directorycreateerror; /var/www/html/wikitest/images/temp/8/8b
Backtrace:
#0 /var/www/html/wikitest/includes/upload/UploadBase.php(634): UploadStash->stashFile('/var/tmp/phpdeg...', Array, NULL)
#1 /var/www/html/wikitest/includes/upload/UploadBase.php(646): UploadBase->stashSessionFile(NULL)
#2 /var/www/html/wikitest/includes/specials/SpecialUpload.php(367): UploadBase->stashSession()
#3 /var/www/html/wikitest/includes/specials/SpecialUpload.php(461): SpecialUpload->showUploadWarning(Array)
#4 /var/www/html/wikitest/includes/specials/SpecialUpload.php(192): SpecialUpload->processUpload()
#5 /var/www/html/wikitest/includes/SpecialPage.php(578): SpecialUpload->execute(NULL)
#6 /var/www/html/wikitest/includes/Wiki.php(251): SpecialPage::executePath(Object(Title))
#7 /var/www/html/wikitest/includes/Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#8 /var/www/html/wikitest/index.php(114): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
I tried both a chmod 666 and 777 on the images directory with the same result based on the error storing file.
Version: 1.17.x
Severity: normal
OS: Linux
Platform: PC
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=34797