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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Rathi Gnanasekaran (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: