[ 
https://issues.apache.org/jira/browse/TIKA-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761116#comment-15761116
 ] 

Tim Allison commented on TIKA-2212:
-----------------------------------

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}

> Add mime for .potm to 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to