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

Re: approx searchs broken in 2.2.8 (ITS#3062)

Thanks!  I've committed changes to HEAD which should fix this.
I've also expanded the test suite to better test this case.
Please test.


At 10:20 AM 4/9/2004, m.d.t.evans@qmul.ac.uk wrote:
>On Thu, 2004-04-08 at 17:08, Kurt D. Zeilenga wrote:
>> I have yet to duplicate this problem.  I've added to approx
>> searches to the test suite, one of which is upon an attribute
>> which has an eq but no approx index.  Works just fine.
>> See HEAD.
>Hmmm. Tried your head patch and that works for me. However...
>> Suggest you experiment with the test suite, modifying test003
>> or other, such that it duplicates the problem you are seeing.
>> Then follow-up to this ITS with the changes you made (in
>> the form of a patch against the test suite).
>... I can repoduce the effect with a simpler search:
>The first hunk changes the exact jENSEN search to print it's output to
>the screen as well as appending to the $SEARCHOUT file.
>The next hunk is an approx search (copied from the exact jENSEN search)
>also with a tee command.
><       '(sn=jENSEN)' >> $SEARCHOUT 2>&1
>>       '(sn=jENSEN)' | tee -a $SEARCHOUT 2>&1
>> echo "Testing APPROX searching..."
>>       '(sn~=jENSEN)' | tee -a $SEARCHOUT 2>&1
>> RC=$?
>> if test $RC != 0 ; then
>>       echo "ldapsearch failed ($RC)!"
>>       test $KILLSERVERS != no && kill -HUP $KILLPIDS
>>       exit $RC
>> fi
>When you run the test there is no data output in the approx search:
>>>>>> Starting test003-search ...
>running defines.sh
>Running slapadd to build slapd database...
>Running slapindex to index slapd database...
>Starting slapd on TCP/IP port 9011...
>Testing slapd searching...
>Waiting 5 seconds for slapd to start...
>Testing exact searching...
>dn: cn=Barbara Jensen,ou=Information Technology
> y of Michigan,c=US
>objectClass: OpenLDAPperson
>cn: Barbara Jensen
>cn: Babs Jensen
>sn:: IEplbnNlbiA=
>dn: cn=Bjorn Jensen,ou=Information Technology
> of Michigan,c=US
>objectClass: OpenLDAPperson
>cn: Bjorn Jensen
>cn: Biiff Jensen
>sn: Jensen
>Testing APPROX searching...
>Testing OR searching...
>-- Dr MDT Evans, Computing Services, Queen Mary, University of London