-
Type: New Feature
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
Description
Allow users to disable all keys (not individual ones) by introducing a new option in the driver in order to improve performance by skipping undesired validation.
See design doc.
Acceptance criteria
- The new option disableUtf8Validation (To be confirmed) should be able to be set to true, with the default being false.
- When set to true, this option should be interpreted by the driver as needing to pass { validation: { utf8: false }} to the BSON deserializer function when reading a server response
- Tests should be added to:
- Ensure that inputs to disableUtf8Validation are valid (T/F)
- Ensure that the correct BSON option ({ validation: { utf8: false }}) is being passed into deserializer as a result of this option
-
- Ensure that all keys have utf8 disabled
- Ensure that when no option is provided, existing functionality is not affected.
- is related to
-
COMPASS-4944 Fail gracefully instead of "Invalid UTF-8 string in BSON document"
- Open
-
DRIVERS-1936 Drivers should have option to disable UTF-8 validation for BSON strings
- Backlog