Status: In Progress
Priority: Major - P3
Affects Version/s: None
Fix Version/s: None
Security Level: Public
Last comment by Customer:false
Soon – pretty very soon – MongoDB will be introducing new BSON types.
Although old drivers may not be connecting to MongoDB versions using that BSON types, bson dump files and whatnot will eventually contain these types and these files shoved through old driver versions.
Currently most drivers fail with very confusing error messages, especially if you are actually connected to a MongoDB supporting these types.
This ticket is about unifying this error message to be more friendly and possibly alerting the user that newer drivers may support this type and the BSON may not actually be corrupt as currently reported.
Detected unknown BSON type "\xTYPE" for fieldname "NAME". Are you using the latest driver version?
- TYPE is the current field type
- NAME is the current field name, if possible
The type name should be represented in hex confirming to our BSON Spec convention '\x00'.
The field name may not be possible to include in drivers, but drivers SHOULD make BEST EFFORT to include it. It helps our users a great deal as they could potentially project that field out as a poor mans workaround.
It is not required to provide the fieldname using dotnotation for nested fields. The inner most fieldname is sufficient.
Please ensure this is done for all currently actively - AND INACTIVELY - maintained drivers.