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

PyMongo should error on username or password with unescaped '%' characters

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

      PyMongo fails the following test from the updated connection string spec tests:

      ======================================================================
      FAIL: test_connection_string_test_invalid-uris (test.test_uri_spec.TestAllScenarios)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "test/test_uri_spec.py", line 55, in run_scenario
          "Test failure '%s'" % dsc)
      AssertionError: Test failure 'Username with password containing an unescaped percent sign'
      

      The problem is Python's unquote(_plus) happily ignores unescaped % characters.

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: