Duplicate server selection in Collection::findOne()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.0.5, 1.1.2
    • Affects Version/s: 1.0.4, 1.1.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: