[GODRIVER-1195] Allow username and password include plus sign in connect string Created: 10/Jul/19  Updated: 11/Jul/19  Resolved: 11/Jul/19

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

Type: Bug Priority: Major - P3
Reporter: newk Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In: connstring/connstring.go

Replace `QueryUnescape` with `PathUnescape` for not unescape the plus sign in username and password

According to https://docs.mongodb.com/manual/reference/connection-string/#components , the plus sign does not need to use percent encoding, but with `QueryUnescape`, it will be convert to a space.

As in https://golang.org/pkg/net/url/#PathUnescape said:

PathUnescape is identical to QueryUnescape except that it does not unescape '+' to ' ' (space).



 Comments   
Comment by Esha Bhargava [ 11/Jul/19 ]

this is a duplicate of https://jira.mongodb.org/browse/GODRIVER-449

Comment by newk [ 10/Jul/19 ]

I am not familiar with Jira. If I do something wrong or if you need more information, please let me know

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