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

Escaped username maybe not properly parsed

    • 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/valid-auth.json b/tests/json/connection_uri/valid-auth.json
      index 36a7be3..95e091e 100644
      --- a/tests/json/connection_uri/valid-auth.json
      +++ b/tests/json/connection_uri/valid-auth.json
      @@ -262,31 +262,6 @@
             }
           },
           {
      -      "description": "Escaped username (GSSAPI)",
      -      "uri": "mongodb://user%40EXAMPLE.COM:secret@localhost/?authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:true&authMechanism=GSSA
      -      "valid": true,
      -      "warning": false,
      -      "hosts": [
      -        {
      -          "type": "hostname",
      -          "host": "localhost",
      -          "port": null
      -        }
      -      ],
      -      "auth": {
      -        "username": "user@EXAMPLE.COM",
      -        "password": "secret",
      -        "db": null
      -      },
      -      "options": {
      -        "authmechanism": "GSSAPI",
      -        "authmechanismproperties": {
      -          "SERVICE_NAME": "other",
      -          "CANONICALIZE_HOST_NAME": true
      -        }
      -      }
      -    },
      -    {
             "description": "At-signs in options aren't part of the userinfo",
             "uri": "mongodb://alice:secret@example.com/admin?replicaset=my@replicaset",
             "valid": true,
      
      

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

              Created:
              Updated:
              Resolved: