Last modified: 2013-10-23 18:17:37 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 T36797, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34797 - Cannot upload Office 97-2003 DOC and XLS files
Cannot upload Office 97-2003 DOC and XLS files
Status: RESOLVED DUPLICATE of bug 38432
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.18.x
All All
: Normal normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-29 16:26 UTC by Florian D.
Modified: 2013-10-23 18:17 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
97-2004 doc file (21.50 KB, application/vnd.ms-word)
2012-02-29 16:26 UTC, Florian D.
Details

Description Florian D. 2012-02-29 16:26:27 UTC
Created attachment 10128 [details]
97-2004 doc file

Hi,

We are unable to upload DOC and XLS files, created with Microsoft Office on an Apple Mac platform, when we choose 97-2004 format.

Here is the debug message:

MimeMagic::improveTypeFromExtension: improved mime type for .doc: application/msword
MediaHandler::getHandler: no handler found for application/msword.
File::getPropsFromPath: /tmp/phpPKgA0J loaded, 102400 bytes, application/msword.
UploadBase::detectScript: checking for embedded scripts and HTML stuff
UploadBase::detectScript: no scripts found
ZipDirectoryReader: Fatal error: trailing bytes after the end of the file comment

It worked with Mediawiki 1.17. It doesn't anymore since MW 1.18.

Such a document is attached to this bug report.
Comment 1 Antoine "hashar" Musso (WMF) 2012-03-01 10:50:09 UTC
That zip file is in a bad shape:

$ unzip Tes*
Archive:  Test - 2007.doc
warning [Test - 2007.doc]:  6064 extra bytes at beginning or within zipfile

  (attempting to process anyway)
  inflating: [Content_Types].xml     
  inflating: _rels/.rels             
  inflating: theme/theme/themeManager.xml  
  inflating: theme/theme/theme1.xml  
  inflating: theme/theme/_rels/themeManager.xml.rels  
$

From bug 24073, MS Word append a zip file after the doc. Might be a regression in 1.18
Comment 2 Platonides 2012-03-03 23:19:44 UTC
Yes, it's the same issue. Adding hartman to the bug as the solver of the previous one.
Comment 3 Florian D. 2012-06-08 11:53:21 UTC
Hi,

The issue is still here, in MW 1.19.
Comment 4 Derk-Jan Hartman 2012-08-27 14:43:26 UTC

*** This bug has been marked as a duplicate of bug 38432 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links