Last modified: 2014-10-12 18:59:28 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 T73954, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71954 - PDF with OpenDocument embedded causes bad-zip
PDF with OpenDocument embedded causes bad-zip
Status: NEW
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-11 14:19 UTC by John Mark Vandenberg
Modified: 2014-10-12 18:59 UTC (History)
7 users (show)

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


Attachments
PDF with embedded OpenDocument (15.07 KB, application/pdf)
2014-10-11 14:19 UTC, John Mark Vandenberg
Details

Description John Mark Vandenberg 2014-10-11 14:19:15 UTC
Created attachment 16748 [details]
PDF with embedded OpenDocument

Uploading a PDF which has an OpenDocument embedded, a feature of LibreOffice (see attached), results in error:

The file is a corrupt or otherwise unreadable ZIP file. It cannot be properly checked for security. (error code bad-zip)

$ file test-embedded-opendocument.pdf 
test-embedded-opendocument.pdf: PDF document, version 1.4

$ unzip test-embedded-opendocument.pdf 
Archive:  test-embedded-opendocument.pdf
warning [test-embedded-opendocument.pdf]:  481 extra bytes at beginning or within zipfile
  (attempting to process anyway)
 extracting: mimetype                
 extracting: Thumbnails/thumbnail.png  
  inflating: styles.xml              
  inflating: content.xml             
  inflating: meta.xml                
  inflating: settings.xml            
  inflating: manifest.rdf            
  inflating: Configurations2/accelerator/current.xml  
   creating: Configurations2/progressbar/
   creating: Configurations2/statusbar/
   creating: Configurations2/images/Bitmaps/
   creating: Configurations2/floater/
   creating: Configurations2/toolbar/
   creating: Configurations2/popupmenu/
   creating: Configurations2/toolpanel/
   creating: Configurations2/menubar/
  inflating: META-INF/manifest.xml

It would be reasonable to detect this as a ZIP or an OpenDocument instead of a PDF, and only allow upload if the mime type if permitted (which it isnt, on WMF projects at least due to bug 2089), but it should have a nice informative error message as this is a file type we'll seeing an increasing number of, and it is readable as a PDF in all programs I've tried it on.

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


Navigation
Links