wiki.techinc.nl/tests/phpunit/includes/libs
Antoine Musso c40d76e23b Recognizes Open Document Database
Mediawiki does not recognizes the mime type of an OpenOffice / Libre
Office Database Frontend Document and thus uses application/zip.

Our MimeAnalyzer::detectZipType() looks at the Zip files to detect known
signatures, however it is based on a reference from 2005 which did not
have the Database type yet.

OASIS Open Document Format v1.2 specify non normative MIME types, the
reference supposedly being the ones registered with the IANA, but we
have some dispredancy: ODF recommends 'base' while the IANA got
'database' registered: https://www.iana.org/assignments/media-types/

I supposed the format got approved as is, the Database mime type being
'recommended' probably because the IANA registration was pending.

Add the 'base' type which is being used by OpenOffice 3.x and later as
well as at least Libre Office 5.x.
Document my findings in code comments.
Add a test.

Bug: T35515
Change-Id: If0210a87067358612ecb8b3edd001fb05d01653d
2019-07-09 13:42:07 +02:00
..
composer Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
http Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
mime Recognizes Open Document Database 2019-07-09 13:42:07 +02:00
objectcache Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
ParamValidator API: Abstract out parameter validation 2019-06-23 10:58:44 +02:00
rdbms rdbms: normalize Database/LBFactory logging and add snapshot flushing warnings 2019-07-06 13:10:24 -07:00
services Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
stats Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ArrayUtilsTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CookieTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CSSMinTest.php tests: Use standard utilities for temporary file names 2019-05-06 17:21:45 +00:00
DeferredStringifierTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
DnsSrvDiscovererTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
EasyDeflateTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
GenericArrayObjectTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
HashRingTest.php Reduce HashRing test load to avoid several seconds of CPU 2019-06-14 12:57:12 +01:00
HtmlArmorTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
IEUrlExtensionTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
IPTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
JavaScriptMinifierTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MapCacheLRUTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MemoizedCallableTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MWMessagePackTest.php Remove covers validator trait where it is not needed 2019-05-17 16:49:31 +02:00
ProcessCacheLRUTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
SamplingStatsdClientTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
StaticArrayWriterTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
StringUtilsTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
TimingTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XhprofDataTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XhprofTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlTypeCheckTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00