From dev-return-27607-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Thu Oct 02 13:33:31 2008 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 72837 invoked from network); 2 Oct 2008 13:33:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2008 13:33:31 -0000 Received: (qmail 89936 invoked by uid 500); 2 Oct 2008 13:33:30 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 89740 invoked by uid 500); 2 Oct 2008 13:33:30 -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 89729 invoked by uid 99); 2 Oct 2008 13:33:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2008 06:33:29 -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.134.186 as permitted sender) Received: from [209.85.134.186] (HELO mu-out-0910.google.com) (209.85.134.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2008 13:32:26 +0000 Received: by mu-out-0910.google.com with SMTP id i10so854333mue.5 for ; Thu, 02 Oct 2008 06:32:43 -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:content-type:content-transfer-encoding:from; bh=9KNhSWGNiyqlgzkXk9KYInbCqW2i36jWstHZIZ6Jg/A=; b=mcNfnZ7vXJqJEaNr1MlaTgmD1AqytfxMdI/KZc6sD8n2Lb0f4GDpgKG5o4V0bzdZPJ C57dXP02/RYD/Yk15iTsRZdEuTKNdhwZM/2UDRbUohzr9GbbtaH91wN8UIiEVFrPG+gX R/iYOWpCt/y1D7cFf6rNvGPGhzBdAKAQmc2dw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:content-type :content-transfer-encoding:from; b=VtRS2KeV5Pynr2M7G1XNtITFoAvARnkASFGg+sOJOoSzwyb5IPvdO7yMAQvCTbhd0U TMf7+2H9SiSdhexC0aa4F41o7nPmpReZ49uYazzQjcn9qndRlK29b9E5Ypk4WGmKX6J5 YHwCL+c40J0rA3qYChgKoezhDy/zXixMWotmw= Received: by 10.181.24.14 with SMTP id b14mr5634647bkj.22.1222954363013; Thu, 02 Oct 2008 06:32:43 -0700 (PDT) Received: from ?192.168.0.13? ([78.226.4.211]) by mx.google.com with ESMTPS id k29sm2263021fkk.2.2008.10.02.06.32.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Oct 2008 06:32:42 -0700 (PDT) Message-ID: <48E4CD79.9070401@nextury.com> Date: Thu, 02 Oct 2008 15:32:41 +0200 User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Ldap.toString() returning a Normalized DN is an error... 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 Hi guys, I'm realizing that the LdapDN.toString() method returning a normalized DN was a truly bad idea. It's used all over the code, for instance to generate error messages, and this is obfuscating them. It would be way better if the toString() method returns the user provided DN so that the semantic of this method is kept. All in all, the toString() method is supposed to return something whichj is readable by human beings, when 1.3.6.1.4.1.18060.0.4.0.2.1=test is not :) So what about replacing the current implementation to return the UP name instead of the Normname ? -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org