setDefaultRWConcern accepts invalid write concern options

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Security 2022-01-24, Replication 2021-12-13, Replication 2021-12-27, Replication 2022-01-10
    • 167
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      setDefaultRWConcern accepts invalid write concern options like {w: "1"}, but the server will error with UnknownReplWriteConcern when trying to do an actual write.

      We should either start accepting {w: "1"} or error at the time of setting the default read/write concern.

              Assignee:
              Gabriel Marks
              Reporter:
              Samyukta Lanka
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: