Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 4437 invoked from network); 3 Oct 2009 20:46:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Oct 2009 20:46:54 -0000 Received: (qmail 81954 invoked by uid 500); 3 Oct 2009 20:46:54 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 81860 invoked by uid 500); 3 Oct 2009 20:46:54 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 81852 invoked by uid 99); 3 Oct 2009 20:46:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Oct 2009 20:46:54 +0000 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, 03 Oct 2009 20:46:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 775FF234C004 for ; Sat, 3 Oct 2009 13:46:23 -0700 (PDT) Message-ID: <59035303.1254602783474.JavaMail.jira@brutus> Date: Sat, 3 Oct 2009 13:46:23 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-1414) Normalization is not handling correctly (buit this has no impact) In-Reply-To: <325023742.1254602183969.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761952#action_12761952 ] Emmanuel Lecharny commented on DIRSERVER-1414: ---------------------------------------------- a good example of a potential problem where we use different Normalizer for the same attribute, when using different Matching rule, would be for a Name : (cn=Test this) In this case, we will use the EQUALITY MR, which will remove spaces on the left, right, and replace contiguous spaces inside the body by a second space.It also lowercase the value This filter will correctly match : " test ThiS " Now, using a SUBSTR matching rule, the filter (cn=Test *) will match " test ThiS " but not necessarily "test", as the normalizer might keep the useless space before the '*' or keep it (and in this case, 'test' won't match) This is just an exemple of potential bad matching, even if it won't happen with the CN attributes, as this AT does not define a SUBSTR MR... > Normalization is not handling correctly (buit this has no impact) > ----------------------------------------------------------------- > > Key: DIRSERVER-1414 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1414 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.5.5 > Reporter: Emmanuel Lecharny > Priority: Minor > Fix For: 2.5.0 > > > Normalizers are attached to MatchingRules. An AttributeType might have up to three MR (EQUALITY, ORDERING and SUBSTR). Normalization is always done using the EQUALITY MR, regardless the MR used. > This has an impact on the DN normalization, and AT normalization that is done very early in the requests processing. We also stores a normalized form of each DN withing the LdapDN data structure, to avoid a costly operation to take place when searching for a value. > This is a good thing as far as the potential MR a AT can use are all using the same Normalizer, but the first time we will have a MR using a different normalizer, the search will fail. > Right now, I suggest we keep doing what we are doing, ie, using the EQUALITY MR as a default. It's very unlikely that it will have an impact on the server. > As a side note, one can wonder when do we have a different normalizer used for an AT, and there is a clear use case : when using a approx filter, for instance, or a substr filter, normalization can be different(we may use a phonetic normalization for the approx filter, and the normalization can be different if we are using a SUBSTR MR too). So far, we are ok as we don't support the approx filter... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.