Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 0E91BDF9B for ; Fri, 26 Oct 2012 12:57:14 +0000 (UTC) Received: (qmail 9821 invoked by uid 500); 26 Oct 2012 12:57:13 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 9772 invoked by uid 500); 26 Oct 2012 12:57:13 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 9727 invoked by uid 99); 26 Oct 2012 12:57:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 12:57:12 +0000 Date: Fri, 26 Oct 2012 12:57:12 +0000 (UTC) From: "Philipp Marx (JIRA)" To: dev@felix.apache.org Message-ID: <203242304.31857.1351256232773.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (FELIX-3737) HttpFilter service.ranking is not evaluated properly under some circumstances MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Philipp Marx created FELIX-3737: ----------------------------------- Summary: HttpFilter service.ranking is not evaluated properly under some circumstances Key: FELIX-3737 URL: https://issues.apache.org/jira/browse/FELIX-3737 Project: Felix Issue Type: Bug Components: HTTP Service Affects Versions: http-2.2.0 Reporter: Philipp Marx Priority: Minor If a Http-Filter is registered with a service.ranking of Interger.MAX_VALUE and another Http-Filter is registered with a negative service.ranking (like org.apache.sling.i18n.impl.I18NFilter which has -700) the evaluation of the sorting order (mostly) fails. The problem is FilterHandler's compareTo method which leads to an overflow in this case: public int compareTo(FilterHandler other) { return other.ranking - this.ranking; } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira