Return-Path: Delivered-To: apmail-incubator-tika-dev-archive@locus.apache.org Received: (qmail 98877 invoked from network); 5 Sep 2008 13:00:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2008 13:00:35 -0000 Received: (qmail 25312 invoked by uid 500); 5 Sep 2008 13:00:33 -0000 Delivered-To: apmail-incubator-tika-dev-archive@incubator.apache.org Received: (qmail 25273 invoked by uid 500); 5 Sep 2008 13:00:33 -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 25262 invoked by uid 99); 5 Sep 2008 13:00:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2008 06:00:33 -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; Fri, 05 Sep 2008 12:59:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4775234C1CE for ; Fri, 5 Sep 2008 05:59:44 -0700 (PDT) Message-ID: <1654666841.1220619584858.JavaMail.jira@brutus> Date: Fri, 5 Sep 2008 05:59:44 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: tika-dev@incubator.apache.org Subject: [jira] Resolved: (TIKA-156) Some MIME magic patterns are ignored by MimeTypes In-Reply-To: <1453248714.1220619464359.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-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting resolved TIKA-156. -------------------------------- Resolution: Fixed Fixed in revision 692430. > Some MIME magic patterns are ignored by MimeTypes > ------------------------------------------------- > > Key: TIKA-156 > URL: https://issues.apache.org/jira/browse/TIKA-156 > Project: Tika > Issue Type: Bug > Components: mime > Reporter: Jukka Zitting > Assignee: Jukka Zitting > Fix For: 0.2-incubating > > > The MimeTypes class uses a SortedSet to keep track of all magic patterns, but the Magic.compareTo() method is not strictly consistent with equals (it can return 0 for two different magic patterns). The unfortunate effect is that the SortedSet will silently ignore some magic patterns that just happen to return 0 when compared to other patterns. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.