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

FunctionalTestCase::getUri() assumes all SRV URIs satisfy $allowMultipleMongoses=false

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      When FunctionalTestCase::getUri() prohibits multi-mongos URIs (default behavior) but encounters a MONGODB_URI with an SRV scheme (i.e. not "mongodb://"), it returns the URI as-is.

      This has yet to cause test failures but it seems incorrect. For a replica set topology, the SRV URI can be used as-is but for a sharded topology it will most certainly point to multiple mongoses (assuming we're using Atlas). In this case, we can probably defer addressing this until we test sharded clusters on Atlas.

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

              Created:
              Updated: