Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1195

Allow username and password include plus sign in connect string

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Connections
    • Labels:
      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 Unassigned
            Reporter:
            newk newk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: