Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A6659B14 for ; Fri, 3 Feb 2012 22:09:30 +0000 (UTC) Received: (qmail 47011 invoked by uid 500); 3 Feb 2012 22:09:30 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 46880 invoked by uid 500); 3 Feb 2012 22:09:29 -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 46873 invoked by uid 99); 3 Feb 2012 22:09:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 22:09:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of akarasulu@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 22:09:21 +0000 Received: by wgbdt10 with SMTP id dt10so4309045wgb.1 for ; Fri, 03 Feb 2012 14:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=HKMemFq4AxHrddThhayiJyQmzLOxLqjYeamkMPmmzyA=; b=nehq7jKDDd0BuClv+1chXJB7vW2upGAhfghT6MiEbCPBU6tw/RdtCbtFr8RTzHj3Sa ekjRpuS+yWSojvWcvT0ctBtvuSbTHxsbttoXyygu+mtiQiy8C6aRRsSNDq4QblxXeysE r/pkB6P6pt+HnbCwt+JSpHktUhhn4edILeYyk= MIME-Version: 1.0 Received: by 10.216.138.102 with SMTP id z80mr6361589wei.38.1328306941257; Fri, 03 Feb 2012 14:09:01 -0800 (PST) Sender: akarasulu@gmail.com Received: by 10.180.82.164 with HTTP; Fri, 3 Feb 2012 14:09:01 -0800 (PST) In-Reply-To: <20120202225908.A31382388900@eris.apache.org> References: <20120202225908.A31382388900@eris.apache.org> Date: Sat, 4 Feb 2012 00:09:01 +0200 X-Google-Sender-Auth: l5NmcZP-_skeQxKrfIuCc05O1Hg Message-ID: Subject: Re: svn commit: r1239907 - in /directory/shared/trunk/ldap/model/src: main/java/org/apache/directory/shared/ldap/model/name/Rdn.java test/java/org/apache/directory/shared/ldap/model/name/RdnTest.java From: Alex Karasulu To: dev@directory.apache.org Content-Type: multipart/alternative; boundary=0016e6d77d4462e65e04b8168f78 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d77d4462e65e04b8168f78 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Feb 3, 2012 at 12:59 AM, wrote: > Author: elecharny > Date: Thu Feb 2 22:59:08 2012 > New Revision: 1239907 > > URL: http://svn.apache.org/viewvc?rev=1239907&view=rev > Log: > Fix DIRAPI-76 : new Rdn( "A=a,B=b" ) now throws an LdapInvalidDnException > > Should the exception not be ... LdapInvalidNameComponent (we can create one if it does not exist). Reason I say this is that the whole issue with the non-intuitive constructor was that the API user was thinking the argument can be a multi-component relative distinguished name or a DN. LdapInvalidDnException might not fit here and it might make the user think they have to use a DN rather than a single name component. WDYT? -- Best Regards, -- Alex --0016e6d77d4462e65e04b8168f78 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Feb 3, 2012 at 12:59 AM, <elecharny@apache.or= g> wrote:
Author: elecharny
Date: Thu Feb =A02 22:59:08 2012
New Revision: 1239907

URL: http://svn.apache.org/viewvc?rev=3D1239907&view=3Drev=
Log:
Fix DIRAPI-76 : new Rdn( "A=3Da,B=3Db" ) now throws an LdapInvali= dDnException


Should the exception n= ot be ... LdapInvalidNameComponent (we can create one if it does not exist)= .

Reason I say this is that the whole issue with the non-= intuitive constructor was that the API user was thinking the argument can b= e a multi-component relative distinguished name or a DN. LdapInvalidDnExcep= tion might not fit here and it might make the user think they have to use a= DN rather than a single name component.

WDYT?

--
Best Regard= s,
-- Alex

--0016e6d77d4462e65e04b8168f78--