[389-devel] Please review: [Bug 574167] An escaped space at the end of the RDN value is not handled correctly

Noriko Hosoi nhosoi at redhat.com
Tue Apr 27 19:17:32 UTC 2010


https://bugzilla.redhat.com/show_bug.cgi?id=574167

https://bugzilla.redhat.com/attachment.cgi?id=409555&action=diff

https://bugzilla.redhat.com/attachment.cgi?id=409555&action=edit

Files:
  ldap/ldif/template-suffix-db.ldif.in
  ldap/servers/slapd/dn.c

Bug Description: If a DN contains "\ " at the end of its RDN,
it's be converted to "\20" by slapi_dn_normalize_ext in the
add operation.  But the following search returns ' ' (not
an escaped space).

Fix Description: When slapi_dn_normalize_ext was applied to a
string which contains "\20", it converted the string to ' '.
This fix changes the behaviour so that the string "\20" in
DN remains untouched.

Also, this patch includes a fix to add a default suffix value
with no double quotes in template-suffix-db.ldif.in.  We keep
double quoted suffix for the backward compatibility.




More information about the 389-devel mailing list