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

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



Tried patching my 2.2.8 build with index.c (1.44->1.45) and attr.c
(1.17>-1.18) changes from the HEAD (I didnt find any others). All works
fine... as far as I am concerned this its can be closed. I haven't tried
the new test suite.

Many thanks,
Martin.

On Fri, 2004-04-09 at 20:32, Kurt D. Zeilenga wrote:
> 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.
> 
> Kurt
> 
> 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.
> >
> >70c73
> ><       '(sn=jENSEN)' >> $SEARCHOUT 2>&1
> >---
> >>       '(sn=jENSEN)' | tee -a $SEARCHOUT 2>&1
> >77a81,92
> >> echo "Testing APPROX searching..."
> >> $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
> >>       '(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
> >>
> >> echo XXXXXXXXXXXXXXX
> >>
> >
> >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...
> >./testrun/slapadd.conf
> >./testdata/test-ordered.ldif
> >Running slapindex to index slapd database...
> >./testdata/slapd.conf
> >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
> >Division,ou=People,o=Universit
> > y of Michigan,c=US
> >objectClass: OpenLDAPperson
> >cn: Barbara Jensen
> >cn: Babs Jensen
> >sn:: IEplbnNlbiA=
> ><SNIP>
> > 
> >dn: cn=Bjorn Jensen,ou=Information Technology
> >Division,ou=People,o=University
> > of Michigan,c=US
> >objectClass: OpenLDAPperson
> >cn: Bjorn Jensen
> >cn: Biiff Jensen
> >sn: Jensen
> ><SNIP>
> > 
> >Testing APPROX searching...
> >XXXXXXXXXXXXXXX
> >Testing OR searching...
> >
> >
> >Martin.
> >
> >-- 
> >-- Dr MDT Evans, Computing Services, Queen Mary, University of London
-- 
-- Dr MDT Evans, Computing Services, Queen Mary, University of London