-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.2.9
-
Component/s: None
The driver handles duplicate options with different character casing very poorly. For instance, if the options array contained both `readpreference` and `readPreference`, bson_iter_init_find_case() would only pick up the first matching key and ignore subsequent duplicates.
This should be changed to iterate over the options to be consistent with the handling of other duplicates in the URI options array, with the last value overriding previous occurrences regardless of casing.
- is related to
-
PHPC-887 Throw exceptions for unexpected types in URI options array
- Closed
- related to
-
CDRIVER-3476 Lowercase options before storing when set via mongoc_uri_set_option_as_*
- Closed