Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 46193 invoked from network); 21 Feb 2007 15:31:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2007 15:31:29 -0000 Received: (qmail 29880 invoked by uid 500); 21 Feb 2007 15:31:35 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 29756 invoked by uid 500); 21 Feb 2007 15:31:34 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 29747 invoked by uid 99); 21 Feb 2007 15:31:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 07:31:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 07:31:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A5407141A3 for ; Wed, 21 Feb 2007 07:31:05 -0800 (PST) Message-ID: <11837132.1172071865548.JavaMail.jira@brutus> Date: Wed, 21 Feb 2007 07:31:05 -0800 (PST) From: "Roland Weber (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Commented: (HTTPCORE-47) HttpRequestHandlerRegistry results are ambiguous In-Reply-To: <16251381.1171999145510.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/HTTPCORE-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474730 ] Roland Weber commented on HTTPCORE-47: -------------------------------------- Hi Oleg, I don't know what Spring does exactly. The best-match comparison is meant to disambiguate the patterns, and that falls short. There are two easy ways to disambiguate: - favor pattern* over *pattern (or vice versa) - use a LinkedHashMap and favor the pattern added first (or last) Given the simplicity of either decision, I don't think we should leave the ambiguity in there. cheers, Roland > HttpRequestHandlerRegistry results are ambiguous > ------------------------------------------------ > > Key: HTTPCORE-47 > URL: https://issues.apache.org/jira/browse/HTTPCORE-47 > Project: HttpComponents Core > Issue Type: Bug > Components: HttpCore > Reporter: Roland Weber > Priority: Minor > > HttpRequestHandlerRegistry uses pattern matching to determine the handler to use. > The best match comparison is exclusively based on pattern length and therefore ambiguos: > patterns "/ma*" and "*tch" both match "/match". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org