Client metadata is invalid JSON

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              Matt Broadstone
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: