Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 70321 invoked from network); 17 Dec 2009 19:23:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Dec 2009 19:23:35 -0000 Received: (qmail 97638 invoked by uid 500); 17 Dec 2009 19:23:35 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 97568 invoked by uid 500); 17 Dec 2009 19:23:35 -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 97554 invoked by uid 99); 17 Dec 2009 19:23:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 19:23:34 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 209.85.219.225 as permitted sender) Received: from [209.85.219.225] (HELO mail-ew0-f225.google.com) (209.85.219.225) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 19:23:32 +0000 Received: by ewy25 with SMTP id 25so2709992ewy.25 for ; Thu, 17 Dec 2009 11:23:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=9T/gonpc9eiM3Zf1/mYS5kmBpcCVOCSbT09JsMLFg9c=; b=Cg16zze4PX0uQGrnKnuzGii9sDOv0c+WNvMRyHKizKuvpL+wRRfWIl8rM94VhAx2ym 2hFS9XowOwNQBCOMe5f9BdbDOyXq8NNZXT9Uk45++vWZJwmkyXyoffXNsDqt7lBDeWkS xRXVqxfapNLL7uwdHyPkykODgZB76VSjxAKjI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=HIO5INNoqtSpDu05belejhsKkQxVLlTa2mP6wmFylflL++4qrOlNSGTbmaQ728BtKv 3WYvbbJbKb9QU2DuD9WVEwTErf9SQZN1xFFcal4l8+fj4784+IvyksKFUiRvIvb75PSV VTPEYeflJHN++bobLnTWMLHbGhYSluORcRFeY= Received: by 10.213.23.201 with SMTP id s9mr3502691ebb.5.1261077790470; Thu, 17 Dec 2009 11:23:10 -0800 (PST) Received: from emmanuel-lecharnys-MacBook-Pro.local (lon92-10-78-226-4-211.fbx.proxad.net [78.226.4.211]) by mx.google.com with ESMTPS id 28sm10048816eye.9.2009.12.17.11.23.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Dec 2009 11:23:08 -0800 (PST) Message-ID: <4B2A851B.4010602@gmail.com> Date: Thu, 17 Dec 2009 20:23:07 +0100 From: =?UTF-8?B?RW1tYW51ZWwgTMKOY2hhcm55?= User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: svn commit: r891807 - in /directory/shared/branches/shared-schema/ldap/src: main/java/org/apache/directory/shared/ldap/name/Rdn.java test/java/org/apache/directory/shared/ldap/name/RdnTest.java References: <20091217172915.5D49B2388ABB@eris.apache.org> <4B2A8266.5020201@apache.org> In-Reply-To: <4B2A8266.5020201@apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Stefan Seelmann a écrit : > Hi, >> + @Test >> + public void testRDNCreation() throws InvalidNameException >> + { >> + Rdn rdn = new Rdn( "A", " b " ); >> + assertEquals( "a=\\ b \\ ", rdn.getNormName() ); >> + assertEquals( "A= b ", rdn.getUpName() ); >> + } >> > IMO this test is wrong. The UpName should be "A=\\ b \\ ". Leading and > trailing spaces in the AttributeValue must be escaped when converting > it to a String, see RFC 4514 Section 2.4. Sadly, this test is not wrong :/ It's the RDN rendering of UP values which is wrong ... As soon as we fix it, then the test will be wrong, I agree :) >