Apache OpenOffice (AOO) Bugzilla – Issue 112108
wiki file upload failure for .odb
Last modified: 2017-05-20 10:24:06 UTC
I have tried several times to upload a 2M odb file to the ooo wiki. The uploader consistently reports failure for file corruption even though the input file is not corrupted. I can email you the file if you would like to try.
Created attachment 69798 [details] DerbyToursDB.odb for ooo2.4.1 using XP SP1
Exact error is: "The file is corrupt or has an incorrect extension. Please check the file and upload again." The ODB file is not corrupt. The ODB file is not being recognized as a valid/allowed file type. It's likely a misconfiguration of the MIME types on the webserver side. Investigating.
Accepting issue
From some reason MediaWiki was detecting the odb file as a zip file instead of as: application/vnd.oasis.opendocument.database odb as it is correctly defined in both the apache2/conf/mime.types and mwiki/includes/mime.types files. This issue and solution is noted here in the MediaWiki documentation: http://www.mediawiki.org/wiki/Manual:Mime_type_detection#MIME_type_validation Added odb to the application/zip mime.type definition, and was able to upload the database successfully to the Wiki. The uploaded database file: http://wiki.services.openoffice.org/wiki/File:DerbyToursDB.odb can be referenced now within the Wiki using the [[File:DerbyToursDB.odb]] Wiki syntax.