Bug 45854 - ODF database mime-type confusion
Summary: ODF database mime-type confusion
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
(earliest affected)
Master old -3.6
Hardware: Other All
: medium normal
Assignee: Michael Stahl (allotropia)
URL: http://lists.oasis-open.org/archives/...
Whiteboard: odf target:7.6.0
Depends on:
Blocks: ODF-spec
  Show dependency treegraph
Reported: 2012-02-09 13:10 UTC by Michael Stahl (allotropia)
Modified: 2023-01-24 10:17 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stahl (allotropia) 2012-02-09 13:10:30 UTC
the ODF 1.2 CS01 Part 1 specification is consistent on the mime type of database documents:

2.2.10 OpenDocument Database Front End Document

> A) The <office:document> element shall have an office:mimetype attribute with the value "application/vnd.oasis.opendocument.base". 
> B) If the document is an OpenDocument package then it shall contain a file named mimetype containing the string " application/vnd.oasis.opendocument.base". 

Appendix C.  MIME Types and File Name Extensions (Non Normative)

> application/vnd.oasis.opendocument.base
> odb
> Database front end document

unfortunately the mime type registered at IANA is a different one:


note ".base" versus ".database".

it looks like current implementations based on OpenOffice.org, such as LibreOffice, write the ".base" mime type into files, but register with desktop environments for the ".database" variant.
Comment 1 Michael Stahl (allotropia) 2012-02-09 13:16:57 UTC
report submitted to OASIS office-comment, see URL
Comment 2 paour 2012-11-10 17:25:09 UTC
Question, why database format name is not ODB (like the extension) and
keep odf for formula ?
When we save a Base or a formula, we have the same :
Type : Database ODF (*.odf) for base
Type : Formula ODF (.odf)(*.odf) for formula
It's not clear !
Comment 3 m.nemo 2013-12-14 18:16:44 UTC
Is there any progress on this bug? Like registering "application/vnd.oasis.opendocument.base" at IANA or changing the spec?

Or has anyone contacted Svante Schubert, as he is listed as contact at IANA? 

Can't LibreOffice just register .base (or both) with desktop environments?
(I really don't like by odb-files to be opened as ZIP-files)
Comment 4 Owen Genat (retired) 2014-01-11 01:06:08 UTC
Link to OASIS JIRA issue added to See Also list for convenience.

(In reply to comment #3)
> Is there any progress on this bug? Like registering
> "application/vnd.oasis.opendocument.base" at IANA or changing the spec?

I sincerely hope that ".base" is changed to ".database" for ODF v1.3 (bringing it in-line with the IANA registered value) to keep this mime type implementation neutral, as well as of a similar nature to the other entries i.e., ".text" instead of ".writer".
Comment 5 Alex Thurgood 2015-01-03 17:39:56 UTC Comment hidden (no-value)
Comment 6 QA Administrators 2016-01-17 20:01:52 UTC Comment hidden (noise)
Comment 7 Michael Stahl (allotropia) 2016-01-18 12:49:23 UTC
still relevant for tracking the OASIS bug which is not resolved yet
Comment 8 QA Administrators 2017-03-06 13:45:40 UTC Comment hidden (noise)
Comment 9 Xisco Faulí 2017-07-13 12:18:02 UTC
Setting Assignee back to default. Please assign it back to yourself if you're
still working on this issue
Comment 10 QA Administrators 2019-07-09 02:44:24 UTC Comment hidden (noise)
Comment 11 Michael Stahl (allotropia) 2019-07-09 09:55:36 UTC
the OASIS bug might have been resolved but the minutes are somewhat mysterious but if i'm right in remembering what the resolution was it still needs some emails OASIS to IANA
Comment 12 QA Administrators 2021-07-09 04:02:28 UTC Comment hidden (noise)
Comment 13 Michael Stahl (allotropia) 2022-03-17 15:44:35 UTC
the ODF TC is currently trying to figure out how to get this resolved with IANA
Comment 14 Michael Stahl (allotropia) 2022-06-13 16:49:11 UTC
just been informed that some progress has been achieved:

Comment 15 Commit Notification 2023-01-24 10:12:48 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":


tdf#45854 sysui: replace wrong ODB mime type

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.
Comment 16 Michael Stahl (allotropia) 2023-01-24 10:17:52 UTC
correct mime type is registered since June 2022:


have adapted all references to the wrong one in core.git, so fixed from LO side.

also MR to fix it in "shared-mime-info" at https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/207