[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3451) JLDAP - Normalizing RDN does not take escaped characters into account



Full_Name: Marc Boorshtein
Version: 
OS: 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (67.173.164.229)


The normalize(String DN) method of the com.novell.ldap.util.DN class does not
escape characters that need escaping.  For  instance:

> java TestDN
dn : cn="Marc Boorshtein, Octet String",dc=idrs,dc=com
normaized : cn=Marc Boorshtein, Octet String,dc=idrs,dc=com
dn : cn=Marc Boorshtein\, Octet String,dc=idrs,dc=com
normaized : cn=Marc Boorshtein, Octet String,dc=idrs,dc=com

Note that neither of the "normalized" dn's have the "," after Boorshtein
escaped.  The problem is that the normalize method does not call
LDAPDN.escapeRDN when re-constructing the DN from it's parts.