[File] application/vnd.oasis.opendocument.database replace/remove
Michael Stahl
mst at libreoffice.org
Tue Jan 24 10:48:54 UTC 2023
hi all,
it only took 10 years but it was finally possible to register the
correct mime type for ODF databases at IANA.
see for details: https://issues.oasis-open.org/browse/OFFICE-3745
now this leads to this obvious change:
diff --git a/magic/Magdir/archive b/magic/Magdir/archive
index 6d89aea4..2143c19f 100644
--- a/magic/Magdir/archive
+++ b/magic/Magdir/archive
@@ -1757,8 +1757,7 @@
# Valid for LibreOffice Base 6.0.1.1 at least
>>>73 string base Database
# https://bugs.documentfoundation.org/show_bug.cgi?id=45854
-!:mime application/vnd.oasis.opendocument.database
-#!:mime application/vnd.oasis.opendocument.base
+!:mime application/vnd.oasis.opendocument.base
!:ext odb
>>>73 string image
>>>>78 byte !0x2d Image
less obviously, i see this just a few lines above:
>>>73 string database Database
!:mime application/vnd.oasis.opendocument.database
!:ext odb
it checks for the string "database" in the file - which makes me wonder
- is this based purely on the wrong mime type being registered at IANA,
or is there actually some software that produces such files? i have
exactly 2387 .odb files here, and all of them use "base", not "database".
so probably this could be removed?
regards,
michael
More information about the File
mailing list