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

Re: matched value matching issues (ITS#3209)

> Full_Name: Pierangelo Masarati
> Version: 2.2, HEAD
> OS: Linux (irrelevant)
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> The matching in matchedValue results is done normalizing the asserted
> value with
> the syntax associated to the requested matching rule (if any), and using
> the
> value normalized according to the value's syntax.  As such, a search for
> '-E!mv=(:caseExactMatch:=People)' fails because the asserted "People" is
> compared to the normalized value of "People", which is "people".  The code
> needs
> some reworking (a patch is coming shortly).

I think some of the test_mra_{vrF|f}ilter() need be rewritten,
because there might be cases when the extended matchingRule
is not that of the value's syntax (if any), so passing a_vals
to the value_match() function doesn't suffice; we need to
normalize the values according to the matcingRule's syntax first.

I think in the past this was done inside value_match(), but now
it's not any more (in fact, now for non-extended matches all
we need to do is pass the normalized values instead of the non-
normalized ones).  I'm not sure how (what flags, mainly) to pass
when normalizing values.


Pierangelo Masarati

    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497