Return-Path: X-Original-To: apmail-manifoldcf-dev-archive@www.apache.org Delivered-To: apmail-manifoldcf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 492A317421 for ; Thu, 16 Oct 2014 01:25:34 +0000 (UTC) Received: (qmail 63839 invoked by uid 500); 16 Oct 2014 01:25:34 -0000 Delivered-To: apmail-manifoldcf-dev-archive@manifoldcf.apache.org Received: (qmail 63786 invoked by uid 500); 16 Oct 2014 01:25:34 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 63773 invoked by uid 99); 16 Oct 2014 01:25:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 01:25:34 +0000 Date: Thu, 16 Oct 2014 01:25:34 +0000 (UTC) From: "Shinichiro Abe (JIRA)" To: dev@manifoldcf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CONNECTORS-1074) Replace ExtensionMimeMap with new Tika().detect(filename) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONNECTORS-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14173205#comment-14173205 ] Shinichiro Abe edited comment on CONNECTORS-1074 at 10/16/14 1:25 AM: ---------------------------------------------------------------------- Hi Karl, bq. Are you planning on submitting a patch for this? I've not yet worked on this, I intended to write a patch sometime though. bq. will require all Tika jars and their dependencies be included in all the war files I agree. bq. In the Tika connector itself ... the content type should always be "text/plain;charset=utf-8". I was not aware this. bq. did you want me to experiment with making this change? Yes, if possible. If you make this change, I will check this manually. Thanks. was (Author: shinichiro abe): Hi Karl, bq. Are you planning on submitting a patch for this? I've not yet worked on this, I intended to write a patch sometime though. bq. will require all Tika jars and their dependencies be included in all the war files I agree. bq. In the Tika connector itself ... the content type should always be "text/plain;charset=utf-8". I was not aware this. bq. did you want me to experiment with making this change? Yes, if possible. Thanks. > Replace ExtensionMimeMap with new Tika().detect(filename) > --------------------------------------------------------- > > Key: CONNECTORS-1074 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1074 > Project: ManifoldCF > Issue Type: Improvement > Components: Framework core > Reporter: Shinichiro Abe > Fix For: ManifoldCF 2.0 > > > It would be nice if we could support many mime type since ManifoldCF has already been using Tika. > {noformat} > new Tika().detect(fileName); > {noformat} > returns String MimeType. Then we could set this into RepositoryDocument#setMimeType(mimeType) on each connector; > Tika reference: > [javadoc|http://tika.apache.org/1.6/api/org/apache/tika/Tika.html] > [test code|http://svn.apache.org/viewvc/tika/tags/1.6-rc2/tika-core/src/test/java/org/apache/tika/TikaDetectionTest.java?view=markup] -- This message was sent by Atlassian JIRA (v6.3.4#6332)