[CDRIVER-3073] Do not allow empty string for replicaSet Created: 05/Apr/19  Updated: 28/Oct/23  Resolved: 27/Jun/19

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

Type: Improvement Priority: Major - P3
Reporter: Jeremy Mikola Assignee: Isabel Atkinson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-3107 Warn when removing the last server fr... Closed
is related to PHPC-1347 Do not allow empty string for replicaSet Closed
is related to DRIVERS-2085 Prohibit explicitly set empty replica... Backlog

 Description   

As discussed in PHPC-1347, replica set names must be non-empty strings. If we disallow empty strings for the replica set URI option we can avoid users from a cryptic server selection failure.



 Comments   
Comment by Githook User [ 27/Jun/19 ]

Author:

{'name': 'isabelatkinson', 'username': 'isabelatkinson', 'email': 'isabel.atkinson@mongodb.com'}

Message: Cdriver 3073 (#572)

  • implemented, testing

Disallow clients from creating URIs with an empty string for the
replicaSet option.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/e2191a9bd23db23c4b887e44586ba3b3f49f81a9

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