You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2016/12/19 13:15:58 UTC
[jira] [Comment Edited] (TIKA-2212) Update mimes for OOXMLParser
[ https://issues.apache.org/jira/browse/TIKA-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761116#comment-15761116 ]
Tim Allison edited comment on TIKA-2212 at 12/19/16 1:15 PM:
-------------------------------------------------------------
If we run this:
{noformat}
TikaConfig tikaConfig = TikaConfig.getDefaultConfig();
MediaTypeRegistry registry = tikaConfig.getMediaTypeRegistry();
for (MediaType child : registry.getChildTypes(MediaType.application("x-tika-ooxml"))) {
//System.out.println(child);
if (! OOXMLParser.SUPPORTED_TYPES.contains(child) &&
! OOXMLParser.UNSUPPORTED_OOXML_TYPES.contains(child)) {
System.out.println("Falling between the cracks: " + child);
}
for (MediaType grandchild : registry.getChildTypes(child)) {
if (! OOXMLParser.SUPPORTED_TYPES.contains(grandchild) &&
! OOXMLParser.UNSUPPORTED_OOXML_TYPES.contains(grandchild)) {
System.out.println("Falling between the cracks grandchild: " + grandchild);
}
}
}
{noformat}
We get this:
{noformat}
Falling between the cracks: application/vnd.ms-powerpoint.slide.macroenabled.12
Falling between the cracks: application/vnd.ms-powerpoint.template.macroenabled.12
Falling between the cracks: application/vnd.openxmlformats-officedocument.presentationml.slide
Falling between the cracks: application/x-tika-ooxml-protected
Falling between the cracks: application/x-tika-visio-ooxml
Falling between the cracks grandchild: application/vnd.ms-visio.drawing
Falling between the cracks grandchild: application/vnd.ms-visio.drawing.macroenabled.12
Falling between the cracks grandchild: application/vnd.ms-visio.stencil
Falling between the cracks grandchild: application/vnd.ms-visio.stencil.macroenabled.12
Falling between the cracks grandchild: application/vnd.ms-visio.template
Falling between the cracks grandchild: application/vnd.ms-visio.template.macroenabled.12
Falling between the cracks: model/vnd.dwfx+xps
{noformat}
was (Author: tallison@mitre.org):
If we run this:
{noformat}
TikaConfig tikaConfig = TikaConfig.getDefaultConfig();
MediaTypeRegistry registry = tikaConfig.getMediaTypeRegistry();
for (MediaType child : registry.getChildTypes(MediaType.application("x-tika-ooxml"))) {
//System.out.println(child);
if (! OOXMLParser.SUPPORTED_TYPES.contains(child) && ! OOXMLParser.UNSUPPORTED_OOXML_TYPES.contains(child)) {
System.out.println("Falling between the cracks: "+child);
}
for (MediaType grandchild : registry.getChildTypes(child)) {
if (! OOXMLParser.SUPPORTED_TYPES.contains(child) && ! OOXMLParser.UNSUPPORTED_OOXML_TYPES.contains(child)) {
System.out.println("Falling between the cracks grandchild: "+grandchild);
}
}
}
{noformat}
We get this:
{noformat}
Falling between the cracks: application/vnd.ms-powerpoint.slide.macroenabled.12
Falling between the cracks: application/vnd.ms-powerpoint.template.macroenabled.12
Falling between the cracks: application/vnd.openxmlformats-officedocument.presentationml.slide
Falling between the cracks: application/x-tika-ooxml-protected
Falling between the cracks: application/x-tika-visio-ooxml
Falling between the cracks grandchild: application/vnd.ms-visio.drawing
Falling between the cracks grandchild: application/vnd.ms-visio.drawing.macroenabled.12
Falling between the cracks grandchild: application/vnd.ms-visio.stencil
Falling between the cracks grandchild: application/vnd.ms-visio.stencil.macroenabled.12
Falling between the cracks grandchild: application/vnd.ms-visio.template
Falling between the cracks grandchild: application/vnd.ms-visio.template.macroenabled.12
Falling between the cracks: model/vnd.dwfx+xps
{noformat}
> Update mimes for OOXMLParser
> ----------------------------
>
> Key: TIKA-2212
> URL: https://issues.apache.org/jira/browse/TIKA-2212
> Project: Tika
> Issue Type: Bug
> Reporter: Tim Allison
> Priority: Trivial
>
> On TIKA-2208, [~dadoonet] found that we are missing the mime for .potm files in our OOXMLParser. Let's add it.
> I also found that it was not possible to exclude children or grandchildren of "x-tika-ooxml". We should fix that somehow.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)