[CSHARP-1087] Comment on: "MongoDB C# driver" Created: 15/Oct/14  Updated: 04/Apr/15  Resolved: 04/Apr/15

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

Type: Bug
Reporter: dexiang Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
Screen Resolution: 1920 x 1080
repo: docs
source: index



 Description   

the class MongoCollectionStringBuidler has a bug.
if remove any connection string parameter by Remove method, the value still remains in it's property.
for example:
var builder = new MongoConnectionStringBuilder()
builder.UserName = "abc";//The user name must be abc
builder.Remove("username");//The user name must be null
string username = builder.UserName;//The user name still is abc

Reporter: Sean.Wood
E-mail: dexiang.wu@gamil.com


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