-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
It appears that libmongoc does no sanitization of (at least) the platform field when building client metadata. A log of the swift driver connecting to mongod reveals the following invalid JSON:
{ driver: { name: "mongoc", version: "1.11.0" }, os: { type: "Darwin", name: "macOS", version: "17.4.0", architecture: "x86_64" }, platform: "cfg=0x00d68265 posix=200112 stdc=201112 CC=clang 9.1.0 (clang-902.0.39.2) CFLAGS="" LDFLAGS=""" }
- related to
-
SERVER-16620 escape double quotes \" when printing strings to log
- Closed