[CDRIVER-1388] Warn on unsupported URI options Created: 15/Jul/16  Updated: 03/May/17  Resolved: 06/Feb/17

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

Type: New Feature Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by PHPC-765 Connection string spec compliance Closed
Related
related to CDRIVER-2141 Do not allow appname URI option to be... Closed
related to CDRIVER-1478 Implement Connection String Spec Tests Closed
is related to DRIVERS-248 Implement Connection String Spec Closed
Epic Link: C Driver Connection String Spec

 Description   

The spec says to warn on unsupported options, but not to fail:

https://github.com/mongodb/specifications/blob/master/source/connection-string/connection-string-spec.rst#defining-connection-options

mongoc_uri_parse_option should call MONGOC_WARN for any option it doesn't recognize. We'll need to ensure all recognized options are listed somewhere in mongoc-uri.c.



 Comments   
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: 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-1388 Define all URI options
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/16d03dc58f598c1671d20d658681c0d871f96514

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-1388 Warn on unsupported URI options
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/b4a1c7bb0a0a6f6761368e6ced0b207daeb742e0

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