Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2025

Repeated options should issue a warning

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      diff --git a/tests/json/connection_uri/valid-warnings.json b/tests/json/connection_uri/valid-warnings.json
      index a0d5552..507c6d3 100644
      --- a/tests/json/connection_uri/valid-warnings.json
      +++ b/tests/json/connection_uri/valid-warnings.json
      @@ -16,23 +16,6 @@
             "options": null
           },
           {
      -      "description": "Repeated option keys",
      -      "uri": "mongodb://example.com/?replicaSet=test&replicaSet=test",
      -      "valid": true,
      -      "warning": true,
      -      "hosts": [
      -        {
      -          "type": "hostname",
      -          "host": "example.com",
      -          "port": null
      -        }
      -      ],
      -      "auth": null,
      -      "options": {
      -        "replicaset": "test"
      -      }
      -    },
      -    {
             "description": "Deprecated (or unknown) options are ignored if replacement exists",
             "uri": "mongodb://example.com/?wtimeout=5&wtimeoutMS=10",
             "valid": true,
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: