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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 4.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: