Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 61907 invoked from network); 13 Jun 2006 22:34:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2006 22:34:49 -0000 Received: (qmail 72035 invoked by uid 500); 13 Jun 2006 22:34:48 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 71989 invoked by uid 500); 13 Jun 2006 22:34:48 -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 71972 invoked by uid 99); 13 Jun 2006 22:34:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 15:34:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 15:34:47 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B35847141FA for ; Tue, 13 Jun 2006 22:33:35 +0000 (GMT) Message-ID: <6939922.1150238015710.JavaMail.jira@brutus> Date: Tue, 13 Jun 2006 22:33:35 +0000 (GMT+00:00) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-631) Creation of entry with special (and escaped) character in RDN leads to wrong attribute value In-Reply-To: <23633528.1149258929770.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRSERVER-631?page=comments#action_12416094 ] Emmanuel Lecharny commented on DIRSERVER-631: --------------------------------------------- This is a really bad problem we have ... Some explainations on how DN should be treated can be found here : http://docs.safehaus.org/display/APACHEDS/DN+normalization+and+parsing This is supposed to be done this way, but it's not. The normalizationService does not transform the DN accordingly to the AttributeType. Changing that will cost time, and tests. Unless I'm totally wrong, of course :) > Creation of entry with special (and escaped) character in RDN leads to wrong attribute value > -------------------------------------------------------------------------------------------- > > Key: DIRSERVER-631 > URL: http://issues.apache.org/jira/browse/DIRSERVER-631 > Project: Directory ApacheDS > Type: Bug > Versions: 1.0-RC3 > Environment: ApacheDS 1.0 RC 3 > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) > Microsoft Windows XP version 5.1 Service Pack 1 > Reporter: Stefan Zoerner > Attachments: AddingEntriesWithSpecialCharactersInRDNTest.java > > If one creates an entry with a special character in its RDN value (e.g. #, <, ...) which is escaped in the (R)DN, the resulting entries has the escape char (\) in its attribute value as well. Example: > Creating this entry: > dn: cn=Bush\, Kate,dc=example,dc=com > objectclass: person > objectclass: top > sn: Bush > cn: Bush, Kate > like this > $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif > adding new entry cn=Bush\, Kate,dc=example,dc=com > leads to an entry like that > $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(sn=Bush)" > version: 1 > dn: cn=Bush\, Kate,dc=example,dc=com > objectclass: person > objectclass: top > sn: Bush > cn: Bush\, Kate > The expected for cn is "Bush, Kate", as provided by the LDIF above. The same error occurs with several characters (other than comma). I'll attach a JNDI JUnit test which demonstrates the issue with test methods using different characters (and the test passes on other directory servers). > Note: This problem may be related to DIRSERVER-628. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira