Bug 676855 - Search non exist ldap record get back one of exist ldap record
Summary: Search non exist ldap record get back one of exist ldap record
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby-ldap
Version: 14
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Stahnke
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-11 15:15 UTC by David Spurek
Modified: 2012-08-16 14:13 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 14:13:16 UTC
Type: ---


Attachments (Terms of Use)

Description David Spurek 2011-02-11 15:15:58 UTC
Description of problem:
Search non exist ldap record get back one of exist ldap record, but I expected to get back empty result.

Version-Release number of selected component (if applicable): 
ruby-ldap-0.9.7-10.fc12.i686


How reproducible:


Steps to Reproduce:
1.add ldif file to ldap server
2.
dn: ou=addressbook,dc=copper,dc=testday
objectClass: organizationalUnit
objectClass: top
ou: addressbook

dn: cn=Jane Doe,ou=addressbook,dc=copper,dc=testday
cn: Jane Doe
givenName: Jane
l: Baton Rouge
mail: jane.doe
mobile: 555-555-5558
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
ou: addressbook
physicalDeliveryOfficeName: Conglomo, Inc., Financial Services
postalAddress: PO BOX 55555
postalCode: 70555
sn: Doe
st: LA
telephoneNumber: 555-555-5555

dn: cn=Peter Wright,ou=addressbook,dc=copper,dc=testday
cn: Peter Wright
givenName: Peter
l: Envy Heights
mail: peter.wright
mobile: 555-555-1237
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
ou: addressbook
physicalDeliveryOfficeName: Pharmacy, Inc., Medical Services
postalAddress: PO BOX 33444
postalCode: 10666
sn: Wright
st: NY
telephoneNumber: 555-555-1234

dn: cn=Barbara Davis,ou=addressbook,dc=copper,dc=testday
cn: Barbara Davis
givenName: Barbara
l: Envy Heights
mail: barbara.davis
mobile: 555-555-3333
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
ou: addressbook
physicalDeliveryOfficeName: Pharmacy, Inc., Medical Services
postalAddress: PO BOX 33444
postalCode: 10666
sn: Davis
st: NY
telephoneNumber: 555-552-1234

3.in ruby script:
search_result = ''
connection.search(base dn, LDAP::LDAP_SCOPE_SUBTREE, "(cn=Marx Marximus)") { |record|                                                                         
	search_result = record.to_hash
}
print search_result.to_s
  
Actual results:
cnBarbara DavisstNYlEnvy HeightsgivenNameBarbaratelephoneNumber555-552-1234postalAddressPO BOX 33444snDavisobjectClassinetOrgPersonorganizationalPersonpersontopmailbarbara.davis, Inc., Medical Servicesdncn=Barbara Davis,ou=addressbook,dc=copper,dc=testday


Expected results:
empty result

Additional info:

Comment 1 Fedora End Of Life 2012-08-16 14:13:18 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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