[CDRIVER-2025] Repeated options should issue a warning Created: 03/Feb/17  Updated: 03/May/17  Resolved: 24/Feb/17

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Task Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C Driver Connection String Spec

 Description   

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,



 Comments   
Comment by Githook User [ 24/Feb/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2025 Duplicate the original string and inline lowercase it

Its easier to simply duplicate it upfront so we don't have to \0
terminate it afterwards
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/a71fbd2bca912ca4ee80ee2ac3a05f87b09f730e

Comment by Githook User [ 24/Feb/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2025 Repeated options should issue a warning
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/c1e0281968c491a8a33578ffb1630fd946cb956e

Comment by Githook User [ 24/Feb/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: Revert "CDRIVER-2025 - Repeated options should issue a warning"

This reverts commit 79f154e0c00a7f704ddfc354a847b45169f35716.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/ecc31c4ed384e8abd9f76fb87809ae85a3a9ab5e

Comment by Githook User [ 06/Feb/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: Merge branch 'CDRIVER-784-connection-uri-spec'

Comment by Githook User [ 06/Feb/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2025 - Repeated options should issue a warning
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/79f154e0c00a7f704ddfc354a847b45169f35716

Generated at Wed Feb 07 21:13:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.