Handle duplicates in URI options array

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: 1.2.9
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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.

              Assignee:
              Andreas Braun
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: