[JAVA-3729] Document connection string and URI option precedence rules Created: 13/May/20  Updated: 27/Oct/23  Resolved: 18/May/20

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

Type: Improvement Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-616 Document connection string and URI op... Closed

 Description   

Description of Drivers Ticket:

Relevant change to connection string spec:

If a driver allows URI options to be specified outside of the connection string (e.g. dictionary parameter to the MongoClient constructor) it MUST document the precedence rules between all such mechanisms. For instance, a driver MAY allow a value for option foo in a dictionary parameter to override the value of foo in the connection string (or vice versa) so long as that behavior is documented.

See DRIVERS-616 for updated details.



 Comments   
Comment by Jeffrey Yemin [ 18/May/20 ]

The Java driver makes applying connection string to settings explicit, so applications can apply in either order, and there are no implicit precedence rules.

Generated at Thu Feb 08 09:00:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.