Allow username and password include plus sign in connect string

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Connections
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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).

            Assignee:
            Unassigned
            Reporter:
            newk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: