Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2023

Unescaped percent sign in connection uri should fail

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      diff --git a/tests/json/connection_uri/invalid-uris.json b/tests/json/connection_uri/invalid-uris.json
      index 15bef75..88b1f8b 100644
      --- a/tests/json/connection_uri/invalid-uris.json
      +++ b/tests/json/connection_uri/invalid-uris.json
      @@ -172,15 +172,6 @@
             "options": null
           },
           {
      -      "description": "Username with password containing an unescaped percent sign",
      -      "uri": "mongodb://alice%foo:bar@127.0.0.1",
      -      "valid": false,
      -      "warning": null,
      -      "hosts": null,
      -      "auth": null,
      -      "options": null
      -    },
      -    {
             "description": "Username with password containing an unescaped colon",
             "uri": "mongodb://alice:foo:bar@127.0.0.1",
             "valid": false,
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: