Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4015

Relax driver-side options validation checks on server options

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      Scope Remove unnecessary driver-side validation on options passed via bson_t in functions like mongoc_database_create_collection.

      Motivation Driver-side validation checks on bson_t options that are validated server-side do not provide value to users. Relying on the server to error in these cases helps with forward compatibility.

      Example mongoc_database_create_collection validates a subset of options that are supported on the create command. If future versions of the server support additional types on those values, it will require a driver change. The validation does not help users. Without the validation, they will still be informed of a wrong type from a server-side error.

      Notes

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: