WriteConcernOptions::parse should verify that the "w" field is an acceptable string

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently it will parse and return an invalid string (for ex. "invalid"). We should check this rather than letting the invalid string propagate up.

      Here: https://github.com/mongodb/mongo/blob/r3.6.1/src/mongo/db/write_concern_options.cpp#L140-L148

      cc esha.maharishi

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: