You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/06/02 15:13:00 UTC

[jira] [Commented] (TIKA-2961) Tika 在识别以caff开始的txt文档时会把它错误地识别为audio/x-caf 音频类型

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

Hudson commented on TIKA-2961:
------------------------------

SUCCESS: Integrated in Jenkins build tika-branch-1x #339 (See [https://builds.apache.org/job/tika-branch-1x/339/])
TIKA-2961 Make the CAF mime magic more specific to avoid false (tallison: [https://github.com/apache/tika/commit/7a141d136578af5ce8cc5dd73e097566d7cbe1aa])
* (edit) tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml


> Tika 在识别以caff开始的txt文档时会把它错误地识别为audio/x-caf 音频类型
> -----------------------------------------------
>
>                 Key: TIKA-2961
>                 URL: https://issues.apache.org/jira/browse/TIKA-2961
>             Project: Tika
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.20
>            Reporter: Feng Jiao Jiang
>            Priority: Critical
>              Labels: newbie
>         Attachments: 1.txt
>
>
> public String getFileType(File file) {
>  String fileType = "";
>  try {
>  Tika tika = new Tika();
>  fileType = tika.detect(file);
>  } catch (Exception e) {
>  e.printStackTrace();
>  }
>  return fileType;
> }
> 以上代码在识别以caff开头的txt文档时,会错误地识别为 audio/x-caf 音频类型



--
This message was sent by Atlassian Jira
(v8.3.4#803005)