Bug 485990

Summary: substring searches match null values
Product: Red Hat Directory Server Reporter: Ulf Weltman <ulf.weltman>
Component: Database - Indexes/SearchesAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED DUPLICATE QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: low    
Version: 8.0CC: benl, nkinder, rmeggins
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-18 20:17:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ulf Weltman 2009-02-17 19:57:04 UTC
If you have add two test entries like this (note the empty title value in the second entry):
dn: uid=test1,dc=cup,dc=hp,dc=com
objectClass: top
objectClass: organizationalperson
objectClass: inetorgperson
objectClass: person
uid: test1
sn: test1
cn: test1
title: test1

dn: uid=test2,dc=cup,dc=hp,dc=com
objectClass: top
objectClass: organizationalperson
objectClass: inetorgperson
objectClass: person
uid: test2
sn: test2
cn: test2
title:

Then a search like this will return BOTH of them:
ldapsearch -b "dc=cup,dc=hp,dc=com" "title=*est*"

Comment 1 Ulf Weltman 2009-02-18 02:30:57 UTC
Actually this seems to be fixed in a build from the tip pulled about a week ago.  I haven't found the change that fixed it though.  Anyone recall fixing it? :)

Comment 2 Noriko Hosoi 2009-02-18 19:54:35 UTC
It works fine for me, too. :)  And I don't recall any fixes related to the bug...

How old was the server when you observed the bug?  Weeks?  Months?

Comment 3 Ulf Weltman 2009-02-18 20:05:46 UTC
I can reproduce the bug with 8.0 builds and it was originally reported in 6.11.

Comment 4 Noriko Hosoi 2009-02-18 20:15:39 UTC
Found it! Nathan fixed it recently.

Bug 174394 -  Substring regex gets confused by empty values 
https://bugzilla.redhat.com/show_bug.cgi?id=174394

Comment 5 Noriko Hosoi 2009-02-18 20:17:26 UTC

*** This bug has been marked as a duplicate of bug 174394 ***