Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4527

pymongocrypt range GA changes breaks support for rangePreview for existing pymongo versions

    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Context

      The pymongocrypt changes in PYTHON-4206 break CSFLE rangePreview support on pymongo < 4.8. For example:

      $ git checkout 4.7.3
      $ TEST_ENCRYPTION=1 tox -e test-eg -- -k range
      ...
      FAILED test/test_encryption.py::TestSpec::test_legacy_fle2v2_Range_Date_Aggregate_FLE2_Range_Date__Aggregate_ - pymongo.errors.EncryptionError: Error parsing FLE2RangeInsertSpec: Missing field 'trimFactor' in placeholder
      

      Definition of done

      We should maintain compatibility by making the range changes opt-in. If that's not possible, we should bump the pymongocrypt version to 2.0 to avoid breaking existing pymongo apps.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: