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

Validate that read preference tags is an array of documents

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.1.8
    • Component/s: None
    • None

      We should validate that a read preference tag set is an array of documents when applying URI options (i.e. php_phongo_apply_rp_options_to_uri()) and constructing a ReadPreference object.

      As mentioned in mongodb/mongo-php-driver#384, libmongoc may segfault when encountering unexpected BSON for the tag set.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: