[JAVA-1323] MongoClientURI cannot correctly parse password if it contains a '@' Created: 30/Jul/14  Updated: 31/Jul/14  Resolved: 31/Jul/14

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

Type: Bug Priority: Minor - P4
Reporter: Winston Lee Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

A password with an '@' character e.g. @dm1n, cannot be parsed correctly by the com.mongo.MongoClientURI class.



 Comments   
Comment by Jeffrey Yemin [ 31/Jul/14 ]

I'm going to close this, as i think the current behavior is correct.

Comment by Winston Lee [ 30/Jul/14 ]

Thanks Jeff, that works. Perhaps this can be closed? Or fix the code such that it looks for the lastindexof @ instead of indexof @?

Comment by Jeffrey Yemin [ 30/Jul/14 ]

Can you try URL encoding the '@' character, e.g.

mongodb://winston%40dm1n:pwd@localhost

Generated at Thu Feb 08 08:54:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.