-
Type:
Task
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
diff --git a/tests/json/connection_uri/valid-auth.json b/tests/json/connection_uri/valid-auth.json
index 0b04f7d..36a7be3 100644
--- a/tests/json/connection_uri/valid-auth.json
+++ b/tests/json/connection_uri/valid-auth.json
@@ -39,25 +39,6 @@
"options": null
},
{
- "description": "User info for single IPv4 host with database (escaped null bytes)",
- "uri": "mongodb://a%00lice:f%00oo@127.0.0.1/t%00est",
- "valid": true,
- "warning": false,
- "hosts": [
- {
- "type": "ipv4",
- "host": "127.0.0.1",
- "port": null
- }
- ],
- "auth": {
- "username": "a\u0000lice",
- "password": "f\u0000oo",
- "db": "t\u0000est"
- },
- "options": null
- },
- {
"description": "User info for single IP literal host without database",
"uri": "mongodb://bob:bar@[::1]:27018",
"valid": true,
@@ -327,4 +308,4 @@
}
}
]
-}
\ No newline at end of file
+}
diff --git a/tests/json/connection_uri/valid-options.json b/tests/json/connection_uri/valid-options.json
index 2a29ce2..4c2bded 100644
--- a/tests/json/connection_uri/valid-options.json
+++ b/tests/json/connection_uri/valid-options.json
@@ -20,23 +20,6 @@
"options": {
"authmechanism": "MONGODB-CR"
}
- },
- {
- "description": "Option key and value (escaped null bytes)",
- "uri": "mongodb://example.com/?replicaSet=my%00rs",
- "valid": true,
- "warning": false,
- "hosts": [
- {
- "type": "hostname",
- "host": "example.com",
- "port": null
- }
- ],
- "auth": null,
- "options": {
- "replicaset": "my\u0000rs"
- }
}
]
-}
\ No newline at end of file
+}
Note that we have an explicit test that makes sure this is disallowed:
tests/test-mongoc-uri.c:722 ASSERT_URIDECODE_FAIL ("%00");