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

Re: (ITS#5959) back-meta doesn't detect illegal values

hyc@OpenLDAP.org wrote:

> 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.
> I was going to try just dup'ing the a->a_vals value into the slot, but I see
> that in back-ldap for the same situation, the entire attribute is just dropped.
> I suppose that's the safer path.

In the spirit of doing what's best to return as much as possible, 
wouldn't it be preferable to just drop illegal values?  And, of course, 
the whole attr if no legal values are left.


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Fax:     +39 0382 476497
Email:   ando@sys-net.it