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

XMLWordPrintableJSON

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

      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
            Reporter:
            Anand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: