-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: JavaScript
-
Fully Compatible
-
v4.0
-
Service Arch 2018-10-08
-
42
bsonWoCompare and bsonBinaryEqual check to see if their arguments are objects (which they are for our exposed bson types), before converting them to bson and then dispatching to underlying bson methods.
This inappropriately shows any special two non-top-level bson values as equal (without throwing) as they convert as general objects (with no actual fields). For some objects, like timestamp, this works (as they store their state as js visible fields). For others, like numberlong or bindata, it does not.
It appears that we have instances of both patterns in current jstests, so it may be advantageous to check for the bson element types, and wrap the objects in that case.
If we don't want to make them work correctly, we should at least throw for broken types
- related to
-
SERVER-37376 Increase task timeout for the update fuzzer tasks on the coverage build variant
- Closed