URI parsing should not assume write concern defaults

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 1.1.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I noticed that (_mongoc_uri_build_write_concern() parses w=1 as MONGOC_WRITE_CONCERN_W_DEFAULT. Combined with CDRIVER-580, this means the driver could send an empty write concern to the server, which could result in an unexpected server-side default being applied.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: