[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#5959) back-meta doesn't detect illegal values
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#5959) back-meta doesn't detect illegal values
- From: hyc@symas.com
- Date: Fri, 20 Feb 2009 01:16:47 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
hyc@OpenLDAP.org wrote:
> Full_Name: Howard Chu
> Version: 2.4.14/HEAD
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (76.91.220.157)
> Submitted by: hyc
>
>
> back-meta doesn't check the return code from the normalizer when it's
> normalizing the values of an attribute. As such, it can leave NULL slots in
> a->a_nvals even though a->a_vals slots are all non-NULL.
This seems like an odd situation, since we just went thru the validator above,
before attempting to normalize. In this case the attribute was
telephoneNumber, with a value of " " (a single space). The validator is
printableStringValidate, which accepts the value. But telephoneNumberNormalize
rejects it. Shouldn't the validator and normalizer always accept the same set
of input?
Anyway, HEAD is fixed to just drop the illegal values, as Ando suggested.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/