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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.4
    • Affects Version/s: None
    • Component/s: Docs
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: