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

Client metadata is invalid JSON

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 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=""" }
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: