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

MongoClient does not accept passwords with @ in it even with urllib.quote_plus

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.1
    • Component/s: Auth
    • Labels:
      None
    • Environment:
      Python 3.4.3

      username = urllib.parse.quote_plus('user')
      password = urllib.parse.quote_plus('p@ssword')
      client = MongoClient('mongodb://%s:%s@xyz.com:12345/AuthDB' % (username, password))

      The above code fails to authenticate.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            anand.thakare@gmail.com Anand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: