Return-Path: Delivered-To: apmail-incubator-tika-dev-archive@locus.apache.org Received: (qmail 92645 invoked from network); 20 Sep 2008 15:38:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2008 15:38:07 -0000 Received: (qmail 8083 invoked by uid 500); 20 Sep 2008 15:38:04 -0000 Delivered-To: apmail-incubator-tika-dev-archive@incubator.apache.org Received: (qmail 8043 invoked by uid 500); 20 Sep 2008 15:38:04 -0000 Mailing-List: contact tika-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tika-dev@incubator.apache.org Delivered-To: mailing list tika-dev@incubator.apache.org Received: (qmail 8032 invoked by uid 99); 20 Sep 2008 15:38:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Sep 2008 08:38:04 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Sep 2008 15:37:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60AFD234C1DF for ; Sat, 20 Sep 2008 08:37:46 -0700 (PDT) Message-ID: <2037905949.1221925066394.JavaMail.jira@brutus> Date: Sat, 20 Sep 2008 08:37:46 -0700 (PDT) From: "Sami Siren (JIRA)" To: tika-dev@incubator.apache.org Subject: [jira] Resolved: (TIKA-119) Add method in MimeTypes.java fails to add some magics In-Reply-To: <22223006.1201169023222.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TIKA-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sami Siren resolved TIKA-119. ----------------------------- Resolution: Duplicate > Add method in MimeTypes.java fails to add some magics > ----------------------------------------------------- > > Key: TIKA-119 > URL: https://issues.apache.org/jira/browse/TIKA-119 > Project: Tika > Issue Type: Bug > Components: mime > Affects Versions: 0.2-incubating > Reporter: James OConnor > Assignee: Chris A. Mattmann > Priority: Minor > > When reading the MimeTypes and creating the internal structures, the add method in MimeTypes.java fails to add magics for some types to the Magics Treeset in MimeTypes.java. > I think this is due to the compareTo method in Magic.java returning 0 if the priority and size values both match, so maybe something different / extra is required for this test, but am not comfortable enough with the code to suggest anything yet. > Types that have magics, but fail to insert them are :- > application/vnd.ms-excel > application/vnd.oasis.opendocument.image > application/vnd.oasis.opendocument.image-template > application/vnd.oasis.opendocument.formula > application/vnd.oasis.opendocument.text-master > application/vnd.oasis.opendocument.text-web > and > application/rtf ( but only after I added a magic value to this ) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.