tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-879) Detection problem: message/rfc822 file is detected as text/plain.
Date Wed, 24 Dec 2014 04:00:14 GMT

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

Hudson commented on TIKA-879:

SUCCESS: Integrated in tika-trunk-jdk1.6 #372 (See [https://builds.apache.org/job/tika-trunk-jdk1.6/372/])
Missing test file from TIKA-879 (nick: http://svn.apache.org/viewvc/tika/trunk/?view=rev&rev=1647725)
* /tika/trunk/tika-parsers/src/test/resources/test-documents/testThunderbirdEml.eml
TIKA-879 Add a new parent mime type, for the text based message formats, of text/x-tika-text-based-message,
which allows Thunderbird messages to be correctly detected as they now show up as being text
based not binary based in the hierarchy (nick: http://svn.apache.org/viewvc/tika/trunk/?view=rev&rev=1647721)
* /tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
* /tika/trunk/tika-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java

> Detection problem: message/rfc822 file is detected as text/plain.
> -----------------------------------------------------------------
>                 Key: TIKA-879
>                 URL: https://issues.apache.org/jira/browse/TIKA-879
>             Project: Tika
>          Issue Type: Bug
>          Components: metadata, mime
>    Affects Versions: 1.0, 1.1, 1.2
>         Environment: linux 3.2.9
> oracle jdk7, openjdk7, sun jdk6
>            Reporter: Konstantin Gribov
>         Attachments: TIKA-879-thunderbird.eml
> When using {{DefaultDetector}} mime type for {{.eml}} files is different (you can test
it on {{testRFC822}} and {{testRFC822_base64}} in {{tika-parsers/src/test/resources/test-documents/}}).
> Main reason for such behavior is that only magic detector is really works for such files.
Even if you set {{CONTENT_TYPE}} in metadata or some {{.eml}} file name in {{RESOURCE_NAME_KEY}}.
> As I found {{MediaTypeRegistry.isSpecializationOf("message/rfc822", "text/plain")}} returns
{{false}}, so detection by {{MimeTypes.detect(...)}} works only by magic.

This message was sent by Atlassian JIRA

View raw message