Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-260

Duplicate server selection in Collection::findOne()

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.5, 1.1.2
    • Affects Version/s: 1.0.4, 1.1.1
    • Component/s: None
    • None

      For PHPLIB-228, 4c61d3c added an earlier server selection in MongoDB\Collection::findOne() but neglected to remove the original server selection before the operation is executed. As such, it's possible for the driver to select a secondary that supports read concerns, inject a default read concern, and then execute the operation on an older secondary that does not support read concerns, thereby triggering an error (as described here).

            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: