directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Empty DN ("") String Value?
Date Sun, 25 Nov 2007 22:59:41 GMT
Marc Boorshtein wrote:
> I wanted to get an opinion from the other java ldap projects.  Should
> the toString() method of a class that represents a DN return null or
> an empty string?  I would think an empty string but JLDAP returns
> null.  Anyone have an opinion on the matter?
>
> Thanks
>
> Marc
>
>   
RFC 4514 states :

2.1.  Converting the RDNSequence

   If the RDNSequence is an empty sequence, the result is the empty or
   zero-length string.



Which means that a DN should be the empty String, ie : "", not null.

IMHO and as far as I understand the RFC :)

-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message