[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 John Mark Vandenberg changed: What|Removed |Added Status|PATCH_TO_REVIEW |NEW Hardware|PC |All See Also||https://bugzilla.wikimedia. ||org/show_bug.cgi?id=31930 OS|Windows Server 2008 |All --- Comment #18 from John Mark Vandenberg --- Patch abandoned over a year ago. fwiw, bug 31930 and bug 54105 suggest there are other false positives in the 'Prevent Java' detection algorithm. -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Andre Klapper changed: What|Removed |Added Keywords|patch-in-gerrit | Status|ASSIGNED|PATCH_TO_REVIEW -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #17 from Gerrit Notification Bot --- https://gerrit.wikimedia.org/r/44379 (Gerrit Change If30b53dd9c05d92e64b893471b881ee34590ee5d) | change ABANDONED [by TheDJ] -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #16 from Bawolff (Brian Wolff) --- Created attachment 12192 --> https://bugzilla.wikimedia.org/attachment.cgi?id=12192&action=edit An example java applet that would get through with this patch These tests are important to prevent uploading of java applets. Its fairly easy to make a java applet with the msword header, I've attached a "hello world" example. If you have a jar file handy, just prepend "\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1" to the beginning and run zip -A foo.jar (Using the standard zip utility that is usually on linux computers). If you really wanted you could probably even make a java applet that is a valid ms word doc. - To fix this we would probably need to validate both parts of the file independantly (?). This is very similar to the issue with mixed pdf and odf files. -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 carlos.peix...@camara.leg.br changed: What|Removed |Added CC||carlos.peix...@camara.leg.b ||r -- You are receiving this mail because: You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Jesús Martínez Novo (Ciencia Al Poder) changed: What|Removed |Added Keywords|patch, patch-need-review|patch-in-gerrit Status|NEW |ASSIGNED Assignee|wikibugs-l@lists.wikimedia. |m...@everybody.org |org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #15 from Mark A. Hershberger --- I've got a small patch that you can look at: gerrit change If30b53dd This WFM, but needs work. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Mark A. Hershberger changed: What|Removed |Added CC||m...@everybody.org --- Comment #14 from Mark A. Hershberger --- Also http://beta.domd.info/pronom/fmt/40 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Chris Steipp changed: What|Removed |Added CC||cste...@wikimedia.org --- Comment #13 from Chris Steipp --- Has this patch been submitted in gerrit yet? It looks about right, so I don't think there should be a problem getting it merged. Feel free to add me as a reviewer. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Andre Klapper changed: What|Removed |Added Priority|Unprioritized |Low Version|1.19|1.19.1 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Andre Klapper changed: What|Removed |Added See Also||https://bugzilla.wikimedia. ||org/show_bug.cgi?id=29461 -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Derk-Jan Hartman changed: What|Removed |Added CC||trois.sin...@gmail.com --- Comment #12 from Derk-Jan Hartman 2012-08-27 14:43:26 UTC --- *** Bug 34797 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Andre Klapper changed: What|Removed |Added Keywords||patch, patch-need-review CC||a9016...@gmx.de --- Comment #11 from Andre Klapper 2012-08-17 11:41:23 UTC --- Thanks for the patch, Derk-Jan. You can use Developer access https://www.mediawiki.org/wiki/Developer_access to submit this as a Git branch directly into Gerrit: https://www.mediawiki.org/wiki/Git/Tutorial Putting your branch in Git makes it easier for us to review it quickly. Thanks again for your contribution! -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #10 from Derk-Jan Hartman 2012-08-05 14:46:59 UTC --- Created attachment 10936 --> https://bugzilla.wikimedia.org/attachment.cgi?id=10936 Patch to bypass xml document parser A patch that bypasses the zip format detector in case the file starts with an office Compound Document Format header. This isn't a working patch yet, because the upload subsequently fails in the JAVA detector, with: ZipDirectoryReader: Fatal error: trailing bytes after the end of the file comment I'm not sure if this error is required to be fatal, it will have to be checked with Tim Starling. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #9 from Derk-Jan Hartman 2012-08-05 14:24:08 UTC --- For future reference, info with even per version signature regexps of .doc files http://beta.domd.info/category/mime-types/applicationmsword -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #8 from Derk-Jan Hartman 2012-08-05 14:12:11 UTC --- The file starts with d0 cf 11 e0 a1 b1 1a e1 Which is the header for the old .doc 2003 filetype. This file is probably saved in compatibility mode as a 2003 .doc file, with an internal 2010 .docx file. Apparently our code finds the .zip header before it finds the .doc header. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #7 from Derk-Jan Hartman 2012-08-05 14:04:00 UTC --- $ unzip test.doc Archive: test.doc warning [test.doc]: 6034 extra bytes at beginning or within zipfile (attempting to process anyway) I'm guessing it's these extra bytes, that are confusing our parser. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #6 from Sam Wilson 2012-07-30 00:44:06 UTC --- Okay, so uploading the above file to MW 1.20alpha (7ab935b) on PHP 5.3.8 and Apache still gives: The file is a corrupt or otherwise unreadable ZIP file. It cannot be properly checked for security. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #5 from Sam Wilson 2012-07-30 00:01:34 UTC --- None of the WMF sites permit the upload of MS Word files (so far as I know). I'm installing from Git now, to let you know if it works on master. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Sumana Harihareswara changed: What|Removed |Added CC||suma...@wikimedia.org --- Comment #4 from Sumana Harihareswara 2012-07-27 13:57:53 UTC --- Does this also happen on the currently running version of MW on WMF sites? And does it happen on an install of master? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #3 from Sam Wilson 2012-07-18 03:09:38 UTC --- Created attachment 10854 --> https://bugzilla.wikimedia.org/attachment.cgi?id=10854 A sample MS Word document that is giving the described error on upload. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 --- Comment #2 from Sam Wilson 2012-07-18 03:08:41 UTC --- (In reply to comment #1) > The problem is that modern .doc files ARE actually zip files. Can you attach a > specific file that has this behavior and detail the environment that you are > running Mediawiki on (OS, PHP version etc ?) Attached is a file that gives the "The file is a corrupt or otherwise unreadable ZIP file. It cannot be properly checked for security" error under the following configuration: 'doc' is listed as an extension for both application/msword and application/zip and $wgAllowJavaUploads is false (well, not set in LocalSettings.php, to be precise). Environment is: Windows Server 2008, 64-bit; PHP 5.3.10; MediaWiki 1.19.1. > It's probably one of the external tools that is incorrectly identifying this > as > a zip file, so you will need to tweak something in the environment if you want > Mediawiki to be able to properly identify the file. Let me know if I can provide any more information. And thank you for your help! -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 38432] Uploading MS Word files doesn't work ("File extension does not match the detected MIME type of the file")
https://bugzilla.wikimedia.org/show_bug.cgi?id=38432 Derk-Jan Hartman changed: What|Removed |Added CC||hart...@videolan.org --- Comment #1 from Derk-Jan Hartman 2012-07-17 09:01:48 UTC --- The problem is that modern .doc files ARE actually zip files. Can you attach a specific file that has this behavior and detail the environment that you are running Mediawiki on (OS, PHP version etc ?) It's probably one of the external tools that is incorrectly identifying this as a zip file, so you will need to tweak something in the environment if you want Mediawiki to be able to properly identify the file. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l