Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3678

Auth docs page says to use quote() when it should say quote_plus()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.4
    • Affects Version/s: None
    • Component/s: Docs
    • None

      As pointed out in https://github.com/mongodb/mongo-python-driver/pull/1186, the docs page incorrectly says to use urllib.parse.quote() when it should say urllib.parse.quote_plus():

      Username and password must be percent-escaped with urllib.parse.quote(), to be used in a MongoDB URI.

      https://pymongo.readthedocs.io/en/stable/examples/authentication.html?highlight=quote#percent-escaping-username-and-password

      This was missed while fixing PYTHON-2973.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: