[CDRIVER-2190] Username and password must be URI-escaped Created: 15/Jun/17  Updated: 28/Oct/23  Resolved: 20/Jun/17

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

Type: Bug Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-1370 Username and password must be URI-esc... Closed
is depended on by DRIVERS-391 Username and password must be URI-esc... Closed
is depended on by PHPC-972 Username and password must be URI-esc... Closed
Duplicate
is duplicated by CDRIVER-2186 More Connection String Spec updates Closed
Related
related to PHPC-1046 Do not specify $external as database ... Closed

 Description   

Not just "%", "@", and ":" must be escaped, all delimiters from RFC 3986 must be percent-encoded. Therefore, since "/" must be escaped in username and password, we can split the URI at the first "/" instead of the last.



 Comments   
Comment by Githook User [ 20/Jun/17 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: unused function

Introduced by mistake while implementing CDRIVER-2190.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6540c1032c4c945ac99d5526460ff450b8b310fd

Comment by Githook User [ 20/Jun/17 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-2190 uname and password must be percent-encoded
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/056a0f963a67331308d70448323db40d985c4eed

Comment by Githook User [ 20/Jun/17 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-2190 update URI JSON tests
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/a0884b6f86cecfca7f46f1bdd89b933f56f0bd74

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