Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3784

Expose disabling utf-8 validation option for users

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • 4.3.0
    • None
    • Needed

    Description

      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. 

      Attachments

        Issue Links

          Activity

            People

              bailey.pearson@mongodb.com Bailey Pearson
              grace.chong@mongodb.com Grace Chong (Inactive)
              Durran Jordan Durran Jordan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: