[SERVER-38616] LDAPArrayIterator behaves incorrectly when initialized with an empty array Created: 13/Dec/18  Updated: 29/Oct/23  Resolved: 20/Dec/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.6.9, 4.0.4
Fix Version/s: 3.6.10, 4.0.6, 4.1.7

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Security 2018-12-31
Participants:

 Description   

Currently, the LDAPArrayIterator() of an empty array is not equal to an empty LDAPArrayIterator(). This causes it code that uses it as a begin iterator in iterator traversal to return the wrong results.

Example:

char* empty[] = { 0 };
LDAPArrayIterator(empty) != LDAPArrayIterator()

 

 

 



 Comments   
Comment by Githook User [ 29/Jan/19 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}

Message: SERVER-38616 LDAPArrayIterator behaves incorrectly when initialized with an empty array
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/a676a80464e06be415fcd644e3cda3d3547447f0

Comment by Mark Benvenuto [ 21/Dec/18 ]

Git: https://github.com/10gen/mongo-enterprise-modules/commit/313b9f93bec7c7a5d9552996213efdc87a023894

Comment by Githook User [ 21/Dec/18 ]

Author:

{'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}

Message: SERVER-38616 LDAPArrayIterator behaves incorrectly when initialized with an empty array

(cherry picked from commit a676a80464e06be415fcd644e3cda3d3547447f0)
Branch: v3.6
https://github.com/10gen/mongo-enterprise-modules/commit/fc46d08b7350a2f804fccd5b6c1d2eb92f21ddca

Comment by Githook User [ 21/Dec/18 ]

Author:

{'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}

Message: SERVER-38616 LDAPArrayIterator behaves incorrectly when initialized with an empty array

(cherry picked from commit a676a80464e06be415fcd644e3cda3d3547447f0)
Branch: v4.0
https://github.com/10gen/mongo-enterprise-modules/commit/313b9f93bec7c7a5d9552996213efdc87a023894

Comment by Mark Benvenuto [ 21/Dec/18 ]

Git commit: https://github.com/10gen/mongo-enterprise-modules/commit/a676a80464e06be415fcd644e3cda3d3547447f0

Generated at Thu Feb 08 04:49:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.