Bug 485990 - substring searches match null values
Summary: substring searches match null values
Keywords:
Status: CLOSED DUPLICATE of bug 174394
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: Database - Indexes/Searches
Version: 8.0
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: Noriko Hosoi
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-17 19:57 UTC by Ulf Weltman
Modified: 2015-01-04 23:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-18 20:17:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.