[Mono-bugs] [Bug 55736][Nor] New - LdapSearchResults Count always zero

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 17 Mar 2004 21:42:23 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by salimma1@yahoo.co.uk.

http://bugzilla.ximian.com/show_bug.cgi?id=55736

--- shadow/55736	2004-03-17 21:42:23.000000000 -0500
+++ shadow/55736.tmp.14397	2004-03-17 21:42:23.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 55736
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Novell.Directory.Ldap
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: salimma1@yahoo.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: LdapSearchResults Count always zero
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I am trying to detect negative search results using LdapSearchResults'
+Count property, but it is always zero, even when the LdapSearchResults
+object contains at least one LdapEntry objects. 
+
+Steps to reproduce the problem:
+1. Do an LDAP search, assign results to an LdapSearchResults variable, say
+Results
+2. Add a breakpoint for assigning Results.Count to an integer
+3. Run application, do a known positive search and note the value of Count
+
+Actual Results:
+Count is always zero
+
+Expected Results:
+Count should match the number of LdapEntry objects returned
+
+How often does this happen? 
+Always
+
+Additional Information:
+Windows XP SP1, Visual Studio Enterprise Architect 2003 with .NET Runtime
+1.1, LDAP.dll from Mono 0.30 for Windows