Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-991

Handle duplicates in URI options array

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.2.9
    • 1.7.0
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              andreas.braun@mongodb.com Andreas Braun
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: