Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 60512 invoked from network); 3 Oct 2008 07:39:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 07:39:58 -0000 Received: (qmail 22665 invoked by uid 500); 3 Oct 2008 07:39:56 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 22623 invoked by uid 500); 3 Oct 2008 07:39:56 -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 22612 invoked by uid 99); 3 Oct 2008 07:39:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 00:39:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 209.85.128.190 as permitted sender) Received: from [209.85.128.190] (HELO fk-out-0910.google.com) (209.85.128.190) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 07:38:52 +0000 Received: by fk-out-0910.google.com with SMTP id e30so962030fke.9 for ; Fri, 03 Oct 2008 00:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding:from; bh=CKNYA3yFNa4mMd36UzNHkGZG2yGZNCjYuP0z6dDnYiU=; b=utv34zeiGUS/+X4obU+IY/VJPARCio2tKjcILq+wv0EkDSAiB2O14pvqEaEhBv3MPz 34HJfUHEvtVJ02GfPjKsMj8jXPd6aV0i/AVkIo6DFtWhs9KbtBApuGOrk1hJTnnXOFMY LfLSPZmY4mE03nlhXQ/fisbd1vuwCK8esgBvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding:from; b=shHwtMJ3WCgeoNSTEPnbbOrgr3PP1bZYJh0BMSRNoV8nenAtPQTl6E7bWvVqX4kwkz gc6tj00uyHWldVv9HSDnpyRSrtF2z4EB7p6xvY5Z6bHonm8NXveUPz7xQJt2Pp6jKT5F 5Zy8EAELOrBBRFfE8mNw8lCwt86CikI7Zzt08= Received: by 10.103.169.1 with SMTP id w1mr415598muo.71.1223019566158; Fri, 03 Oct 2008 00:39:26 -0700 (PDT) Received: from ?192.168.0.11? (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by mx.google.com with ESMTPS id j10sm4252089muh.1.2008.10.03.00.39.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Oct 2008 00:39:24 -0700 (PDT) Message-ID: <48E5CC2A.5060203@nextury.com> Date: Fri, 03 Oct 2008 09:39:22 +0200 User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Ldap.toString() returning a Normalized DN is an error... References: <48E4CD79.9070401@nextury.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Emmanuel Lecharny X-Virus-Checked: Checked by ClamAV on apache.org Norval Hope wrote: > Hi Emmanuel, > > 1++ > > This was definitely a pain in some of my code that needed to deal with > both JNDI Names and LdapDN's but couldn't deal with them > interchangeably, as in the LdapDN case the toString() result was, as > you say, pretty useless from most purposes. > Yeah, I don't understand why I implemented the toString() methiod this way, and stick with it for 2 years ... Sometime you have to step back and look at the code from some distance to understand that something is wrong... > As it happens Pierre-Arnaud and I exchanged an email about whether > this behaviour was still the case inf 1.5.4 a few weeks back. I have > some really dim-distant memory of discussing this with you a long time > ago too - am I mistaken, or did you start a round of tidying this up > once before? > Not exactly. I initially started to implement the Paged Search Control, needed to fix some code in the LdapProtocolHandlers to inject this control, discussed about the way Referrals where handled and how we should change it to make it easier to implement the control, and then found that dealing with LdapURL where some DN with spaces are not exactly handled the best way because we are using the toString() method made me thing that the toString() method has to be changed. Sometime you better not pull some strings :) (btw, I still have to fix the typo you mailed me, but you'd better create a JIRA, because it's buried in my mail stack ...) -- -- cordialement, regards, Emmanuel L�charny www.iktek.com directory.apache.org