Hi,
I would like to override a file extension already registered in the
tika-mimetypes.xml file.
I know that the custom-mimetypes.xml file allows to register new custom
mimetypes and it works well for new file extenstions (glob pattern) that do
not already exist in tika-mimetypes.xml.
Lets take the following entry in tika-mimetypes.xml:
<mime-type type="application/x-dtbresource+xml">
<glob pattern="*.res"/>
</mime-type>
What should I do to override the existing mime-type value to return
"application/my-specific-resource" instead of
"application/x-dtbresource+xml" ?
If I override this entry in the custom-mimetypes.xml I get the following
exception:
...
Caused by: org.xml.sax.SAXException: Conflicting extension pattern: .res
org.apache.tika.mime.MimeTypeException: Conflicting extension pattern: .res
I am using tika 1.19.1
Thanks for your help
Christian